Skip to content

Commit 54e466c

Browse files
committed
fix(sideMenu): Restrict drag to bounds even w/ back views. Fixes #4438
1 parent efbc7f1 commit 54e466c

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
@@ -398,7 +398,7 @@ function($scope, $attrs, $ionicSideMenuDelegate, $ionicPlatform, $ionicBody, $io
398398
var menuEnabled = enableMenuWithBackViews ? true : !backView;
399399
if (!menuEnabled) {
400400
var currentView = $ionicHistory.currentView() || {};
401-
return backView.historyId !== currentView.historyId;
401+
return (dragIsWithinBounds && (backView.historyId !== currentView.historyId));
402402
}
403403

404404
return ($scope.dragContent || self.isOpen()) &&

0 commit comments

Comments
 (0)