Skip to content

Commit b0c18ad

Browse files
committed
Add additional change vertical gesture test
1 parent 850efc5 commit b0c18ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ export default class Drawer extends Component {
295295
let inMask = this.testPanResponderMask(e, gestureState)
296296
if (!inMask) return false
297297
// skip gesture process if we have mostly vertical swipe
298-
if (Math.abs(gestureState.dy) >= Math.abs(gestureState.dx)) return false
298+
if (!this._open && Math.abs(gestureState.dy) >= Math.abs(gestureState.dx)) return false
299299
this._panStartTime = Date.now()
300300
if (inMask && this.shouldCaptureGestures()) return true
301301
if (this.props.negotiatePan) return false

0 commit comments

Comments
 (0)