Skip to content
This repository was archived by the owner on Sep 13, 2020. It is now read-only.

added maxDraggingOffset property #215

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
bugfix
  • Loading branch information
Andrea Cresta committed Oct 7, 2016
commit d96b70990db8281abc44504165ee2eca24f9a3e7
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -132,7 +132,8 @@ class SideMenu extends React.Component {

if (!this.props.bounceBackOnOverdraw && Math.abs(newLeft) > this.props.openMenuOffset) {
newLeft = this.menuPositionMultiplier() * this.props.openMenuOffset;

}

this.props.onMove(newLeft);
this.state.left.setValue(newLeft);
}