Skip to content

Commit

Permalink
Merge pull request #256 from MaxGraey/master
Browse files Browse the repository at this point in the history
Fix issue when vertical gesture conflict with ScrollView in container
  • Loading branch information
i6mi6 committed Dec 7, 2017
2 parents feed92d + b0c18ad commit e068be4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Expand Up @@ -303,6 +303,8 @@ export default class Drawer extends Component {
processShouldSet = (e, gestureState) => {
let inMask = this.testPanResponderMask(e, gestureState)
if (!inMask) return false
// skip gesture process if we have mostly vertical swipe
if (!this._open && Math.abs(gestureState.dy) >= Math.abs(gestureState.dx)) return false
this._panStartTime = Date.now()
if (inMask && this.shouldCaptureGestures()) return true
if (this.props.negotiatePan) return false
Expand Down

1 comment on commit e068be4

@timeout2x
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just fyi, it totally breaks the plugin on android.

Please sign in to comment.