prevent scroll when side bar is open

This commit is contained in:
Gabriel Bazán 2016-07-11 11:17:41 -03:00
commit 70abb1bd89
2 changed files with 8 additions and 3 deletions

View file

@ -70,7 +70,12 @@ angular.module('copayApp.controllers').controller('indexController', function($r
};
self.allowRefresher = function() {
if ($ionicSideMenuDelegate.getOpenRatio() != 0) self.allowPullToRefresh = false;
if ($ionicSideMenuDelegate.getOpenRatio() != 0) {
self.allowPullToRefresh = false;
if (isCordova && platformInfo.isIOS) $ionicScrollDelegate.$getByHandle('my-handle').freezeScroll(true);
return;
}
if (isCordova && platformInfo.isIOS) $ionicScrollDelegate.$getByHandle('my-handle').freezeScroll(false);
}
self.hideBalance = function() {