We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 850efc5 commit b0c18adCopy full SHA for b0c18ad
1 file changed
index.js
@@ -295,7 +295,7 @@ export default class Drawer extends Component {
295
let inMask = this.testPanResponderMask(e, gestureState)
296
if (!inMask) return false
297
// skip gesture process if we have mostly vertical swipe
298
- if (Math.abs(gestureState.dy) >= Math.abs(gestureState.dx)) return false
+ if (!this._open && Math.abs(gestureState.dy) >= Math.abs(gestureState.dx)) return false
299
this._panStartTime = Date.now()
300
if (inMask && this.shouldCaptureGestures()) return true
301
if (this.props.negotiatePan) return false
0 commit comments