Skip to content

Commit

Permalink
fix(sideMenu): Not snapping on close on certain conditions #795
Browse files Browse the repository at this point in the history
  • Loading branch information
mlynch committed Mar 14, 2014
1 parent c180a39 commit a589991
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/controllers/sideMenuController.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,11 @@
// what the drag velocity is
var ratio = this.getOpenRatio();

if(ratio === 0)
if(ratio === 0) {
// Just to be safe
this.openPercentage(0);
return;
}

var velocityThreshold = 0.3;
var velocityX = e.gesture.velocityX;
Expand Down

0 comments on commit a589991

Please sign in to comment.