fix(sideMenu): Not snapping on close on certain conditions #795

This commit is contained in:
Max Lynch
2014-03-14 10:43:30 -05:00
parent c180a39f1f
commit a58999180b

View File

@@ -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;