Skip to content

Commit cb06643

Browse files
committed
fix(sideMenu): allow edge-drag-threshold for right side menus. Closes #2081
1 parent 767ce6a commit cb06643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: js/angular/controller/sideMenuController.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ function($scope, $attrs, $ionicSideMenuDelegate, $ionicPlatform, $ionicBody) {
346346

347347
var dragIsWithinBounds = !shouldOnlyAllowEdgeDrag ||
348348
startX <= self.edgeThreshold ||
349-
startX >= self.content.offsetWidth - self.edgeThreshold;
349+
startX >= self.content.element.offsetWidth - self.edgeThreshold;
350350

351351
return ($scope.dragContent || self.isOpen()) &&
352352
dragIsWithinBounds &&

0 commit comments

Comments
 (0)