mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(sideMenu): Not snapping on close on certain conditions #795
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user