@@ -157,9 +157,10 @@ function($scope, $attrs, $ionicSideMenuDelegate, $ionicPlatform, $ionicBody, $io
157
157
// equal 0, otherwise remove the class from the body element
158
158
$ionicBody . enableClass ( ( percentage !== 0 ) , 'menu-open' ) ;
159
159
160
- freezeAllScrolls ( false ) ;
160
+ self . content . setCanScroll ( percentage == 0 ) ;
161
161
} ;
162
162
163
+ /*
163
164
function freezeAllScrolls(shouldFreeze) {
164
165
if (shouldFreeze && !self.isScrollFreeze) {
165
166
$ionicScrollDelegate.freezeAllScrolls(shouldFreeze);
@@ -169,6 +170,7 @@ function($scope, $attrs, $ionicSideMenuDelegate, $ionicPlatform, $ionicBody, $io
169
170
}
170
171
self.isScrollFreeze = shouldFreeze;
171
172
}
173
+ */
172
174
173
175
/**
174
176
* Open the menu the given pixel amount.
@@ -320,8 +322,6 @@ function($scope, $attrs, $ionicSideMenuDelegate, $ionicPlatform, $ionicBody, $io
320
322
321
323
// End a drag with the given event
322
324
self . _endDrag = function ( e ) {
323
- freezeAllScrolls ( false ) ;
324
-
325
325
if ( isAsideExposed ) return ;
326
326
327
327
if ( isDragging ) {
@@ -359,7 +359,7 @@ function($scope, $attrs, $ionicSideMenuDelegate, $ionicPlatform, $ionicBody, $io
359
359
360
360
if ( isDragging ) {
361
361
self . openAmount ( offsetX + ( lastX - startX ) ) ;
362
- freezeAllScrolls ( true ) ;
362
+ self . content . setCanScroll ( false ) ;
363
363
}
364
364
} ;
365
365
@@ -443,7 +443,7 @@ function($scope, $attrs, $ionicSideMenuDelegate, $ionicPlatform, $ionicBody, $io
443
443
}
444
444
445
445
// ensure scrolls are unfrozen
446
- freezeAllScrolls ( false ) ;
446
+ self . content . setCanScroll ( true ) ;
447
447
} ) ;
448
448
449
449
self . initialize ( {
0 commit comments