We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 250e35f commit 4318d84Copy full SHA for 4318d84
src/Row.js
@@ -46,7 +46,14 @@ export default class Row extends Component {
46
_panResponder = PanResponder.create({
47
onStartShouldSetPanResponder: () => !this._isDisabled(),
48
49
- onMoveShouldSetPanResponder: () => !this._isDisabled(),
+ onMoveShouldSetPanResponder: (e, gestureState) => {
50
+ if (this._isDisabled()) return false;
51
+
52
+ const vy = Math.abs(gestureState.vy)
53
+ const vx = Math.abs(gestureState.vx)
54
55
+ return this._active && (this.props.horizontal ? vx > vy : vy > vx);
56
+ },
57
58
onShouldBlockNativeResponder: () => {
59
// Returns whether this component should block native components from becoming the JS
0 commit comments