Skip to content

Commit e068be4

Browse files
authored
Merge pull request #256 from MaxGraey/master
Fix issue when vertical gesture conflict with ScrollView in container
2 parents feed92d + b0c18ad commit e068be4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,8 @@ export default class Drawer extends Component {
303303
processShouldSet = (e, gestureState) => {
304304
let inMask = this.testPanResponderMask(e, gestureState)
305305
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
306308
this._panStartTime = Date.now()
307309
if (inMask && this.shouldCaptureGestures()) return true
308310
if (this.props.negotiatePan) return false

0 commit comments

Comments
 (0)