mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(sideMenu): allow edge-drag-threshold for right side menus. Closes #2081
This commit is contained in:
2
js/angular/controller/sideMenuController.js
vendored
2
js/angular/controller/sideMenuController.js
vendored
@@ -346,7 +346,7 @@ function($scope, $attrs, $ionicSideMenuDelegate, $ionicPlatform, $ionicBody) {
|
||||
|
||||
var dragIsWithinBounds = !shouldOnlyAllowEdgeDrag ||
|
||||
startX <= self.edgeThreshold ||
|
||||
startX >= self.content.offsetWidth - self.edgeThreshold;
|
||||
startX >= self.content.element.offsetWidth - self.edgeThreshold;
|
||||
|
||||
return ($scope.dragContent || self.isOpen()) &&
|
||||
dragIsWithinBounds &&
|
||||
|
||||
Reference in New Issue
Block a user