Skip to content

Commit

Permalink
fix(menu): change scroll restriction. #4869
Browse files Browse the repository at this point in the history
  • Loading branch information
mlynch committed Dec 29, 2015
1 parent fe3aeac commit ebd76d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions js/angular/controller/sideMenuController.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ function($scope, $attrs, $ionicSideMenuDelegate, $ionicPlatform, $ionicBody, $io

isAsideExposed = shouldExposeAside;
if ((self.left && self.left.isEnabled) && (self.right && self.right.isEnabled)) {
console.log('Setting left and right');
self.content.setMarginLeftAndRight(isAsideExposed ? self.left.width : 0, isAsideExposed ? self.right.width : 0);
} else if (self.left && self.left.isEnabled) {
// set the left marget width if it should be exposed
Expand Down Expand Up @@ -359,7 +358,7 @@ function($scope, $attrs, $ionicSideMenuDelegate, $ionicPlatform, $ionicBody, $io

if (isDragging) {
self.openAmount(offsetX + (lastX - startX));
self.content.setCanScroll(false);
//self.content.setCanScroll(false);
}
};

Expand Down
2 changes: 1 addition & 1 deletion js/views/scrollViewNative.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@
};

self.handleTouchMove = function(e) {
if(self.__frozen || self.__frozenShut) {
if(self.__frozenShut) {
e.preventDefault();
e.stopPropagation();
return false;
Expand Down

0 comments on commit ebd76d5

Please sign in to comment.