fix(sideMenu): allow edge-drag-threshold for right side menus. Closes #2081

This commit is contained in:
Perry Govier
2014-09-17 17:11:21 -05:00
parent 767ce6a3b4
commit cb06643403

View File

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