We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents feed92d + b0c18ad commit e068be4Copy full SHA for e068be4
1 file changed
index.js
@@ -303,6 +303,8 @@ export default class Drawer extends Component {
303
processShouldSet = (e, gestureState) => {
304
let inMask = this.testPanResponderMask(e, gestureState)
305
if (!inMask) return false
306
+ // skip gesture process if we have mostly vertical swipe
307
+ if (!this._open && Math.abs(gestureState.dy) >= Math.abs(gestureState.dx)) return false
308
this._panStartTime = Date.now()
309
if (inMask && this.shouldCaptureGestures()) return true
310
if (this.props.negotiatePan) return false
0 commit comments