Skip to content
This repository was archived by the owner on Sep 16, 2020. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Modify PanHandlers to ensure that a touchalbe element won't block the…
… events
  • Loading branch information
TareqElMasri committed Dec 4, 2018
commit b54fc52e8e8d3a33153d1c264b4c8fae8d483caf
7 changes: 4 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const Swipeout = createReactClass({
disabled: false,
rowID: -1,
sectionID: -1,
sensitivity: 50,
sensitivity: 0,
};
},

Expand All @@ -131,6 +131,7 @@ const Swipeout = createReactClass({
contentPos: 0,
contentWidth: 0,
openedRight: false,
openedLeft: false,
swiping: false,
tweenDuration: 160,
timeStart: null,
Expand All @@ -145,11 +146,11 @@ const Swipeout = createReactClass({
onMoveShouldSetPanResponderCapture: (event, gestureState) =>
Math.abs(gestureState.dx) > this.props.sensitivity &&
Math.abs(gestureState.dy) <= this.props.sensitivity,
onPanResponderGrant: this._handlePanResponderGrant,
onPanResponderGrant: this._handlePanResponderGrant,
onPanResponderMove: this._handlePanResponderMove,
onPanResponderRelease: this._handlePanResponderEnd,
onPanResponderTerminate: this._handlePanResponderEnd,
onShouldBlockNativeResponder: (event, gestureState) => false,
onShouldBlockNativeResponder: (event, gestureState) => true,
onPanResponderTerminationRequest: () => false,
});
},
Expand Down