Skip to content

Commit

Permalink
fix(sideMenu): allow edge-drag-threshold for right side menus. Closes
Browse files Browse the repository at this point in the history
  • Loading branch information
perrygovier committed Sep 17, 2014
1 parent 767ce6a commit cb06643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/angular/controller/sideMenuController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit cb06643

Please sign in to comment.