Skip to content

Commit

Permalink
Added padding to pan responder for just on press.
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Young authored and DanielMSchmidt committed Mar 19, 2017
1 parent b02f9ea commit 592a8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DrawerLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export default class DrawerLayout extends Component {
}

_shouldSetPanResponder = (e, { moveX, dx, dy }) => {
if (!dx || !dy) {
if (!dx || !dy || Math.abs(dx) < 3) {
return false;
}

Expand Down

0 comments on commit 592a8bb

Please sign in to comment.