@@ -157,9 +157,10 @@ function($scope, $attrs, $ionicSideMenuDelegate, $ionicPlatform, $ionicBody, $io
157157 // equal 0, otherwise remove the class from the body element
158158 $ionicBody . enableClass ( ( percentage !== 0 ) , 'menu-open' ) ;
159159
160- freezeAllScrolls ( false ) ;
160+ self . content . setCanScroll ( percentage == 0 ) ;
161161 } ;
162162
163+ /*
163164 function freezeAllScrolls(shouldFreeze) {
164165 if (shouldFreeze && !self.isScrollFreeze) {
165166 $ionicScrollDelegate.freezeAllScrolls(shouldFreeze);
@@ -169,6 +170,7 @@ function($scope, $attrs, $ionicSideMenuDelegate, $ionicPlatform, $ionicBody, $io
169170 }
170171 self.isScrollFreeze = shouldFreeze;
171172 }
173+ */
172174
173175 /**
174176 * Open the menu the given pixel amount.
@@ -320,8 +322,6 @@ function($scope, $attrs, $ionicSideMenuDelegate, $ionicPlatform, $ionicBody, $io
320322
321323 // End a drag with the given event
322324 self . _endDrag = function ( e ) {
323- freezeAllScrolls ( false ) ;
324-
325325 if ( isAsideExposed ) return ;
326326
327327 if ( isDragging ) {
@@ -359,7 +359,7 @@ function($scope, $attrs, $ionicSideMenuDelegate, $ionicPlatform, $ionicBody, $io
359359
360360 if ( isDragging ) {
361361 self . openAmount ( offsetX + ( lastX - startX ) ) ;
362- freezeAllScrolls ( true ) ;
362+ self . content . setCanScroll ( false ) ;
363363 }
364364 } ;
365365
@@ -443,7 +443,7 @@ function($scope, $attrs, $ionicSideMenuDelegate, $ionicPlatform, $ionicBody, $io
443443 }
444444
445445 // ensure scrolls are unfrozen
446- freezeAllScrolls ( false ) ;
446+ self . content . setCanScroll ( true ) ;
447447 } ) ;
448448
449449 self . initialize ( {
0 commit comments