Skip to content

Commit

Permalink
1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed May 8, 2017
1 parent 440c370 commit 6877643
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
4 changes: 4 additions & 0 deletions dist/react-tappable.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ var Mixin = {

initPressDetection: function initPressDetection(event, callback) {
if (!this.props.onPress) return;

// SyntheticEvent objects are pooled, so persist the event so it can be referenced asynchronously
event.persist();

this._pressTimeout = setTimeout((function () {
this.props.onPress(event);
callback();
Expand Down
2 changes: 1 addition & 1 deletion dist/react-tappable.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions example/dist/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -2019,6 +2019,10 @@ var Mixin = {

initPressDetection: function initPressDetection(event, callback) {
if (!this.props.onPress) return;

// SyntheticEvent objects are pooled, so persist the event so it can be referenced asynchronously
event.persist();

this._pressTimeout = setTimeout((function () {
this.props.onPress(event);
callback();
Expand Down
Loading

0 comments on commit 6877643

Please sign in to comment.