Merge pull request #4573 from gabrielbazan7/fix/ScrollIosActivity
prevent scroll when side bar is open
This commit is contained in:
commit
87644b92c6
2 changed files with 8 additions and 3 deletions
|
|
@ -34,8 +34,8 @@
|
|||
|
||||
-->
|
||||
|
||||
<ion-content id="walletHome" class="walletHome tab-view tab-in" scroll="false" >
|
||||
<ion-content on-release="index.allowSideBar = true; index.allowPullToRefresh = true;" on-drag-right="index.allowRefresher()">
|
||||
<ion-content id="walletHome" class="walletHome tab-view tab-in" scroll="false">
|
||||
<ion-content on-release="index.allowSideBar = true; index.allowPullToRefresh = true;" on-drag-right="index.allowRefresher()" delegate-handle="my-handle">
|
||||
<ion-refresher
|
||||
ng-if="index.allowPullToRefresh && index.isCordova"
|
||||
on-pulling="index.allowSideBar = false"
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue