only initialize scroll watcher once
This commit is contained in:
parent
c92d6ae0a1
commit
c78bc746cf
1 changed files with 5 additions and 1 deletions
|
|
@ -279,9 +279,13 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
|||
});
|
||||
}
|
||||
|
||||
var scrollInterval;
|
||||
var scrollWatcherInitialized;
|
||||
|
||||
$scope.$on("$ionicView.enter", function(event, data) {
|
||||
if(scrollWatcherInitialized) {
|
||||
return;
|
||||
}
|
||||
scrollWatcherInitialized = true;
|
||||
$timeout(function() {
|
||||
getScrollPosition();
|
||||
}, 100);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue