Skip to content

Commit

Permalink
drawer not closing on 3d touch.
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Young authored and DanielMSchmidt committed Mar 16, 2017
1 parent 144a42b commit 82c3803
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/DrawerLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ export default class DrawerLayout extends Component {
}

_shouldSetPanResponder = (e, { moveX, dx, dy }) => {
if (!dx || !dy) {
return false;
}

const { drawerPosition } = this.props;

if (this._isLockedClosed() || this._isLockedOpen()) {
Expand Down

0 comments on commit 82c3803

Please sign in to comment.