autoPaging bug fixed onScroll

This commit is contained in:
Daniel Herrero 2018-05-03 20:46:08 +02:00
parent eaf4bbbdbb
commit c838d98010
1 changed files with 4 additions and 2 deletions

View File

@ -56,12 +56,14 @@ class AutoPaging {
startScroll() {
this.watchScroll = true;
this.checkPosition();
angular.element(this.$window).bind("wheel", this.handlerScroll);
let mainView = this.$window.document.querySelector('.main-view > ui-view.ng-scope');
angular.element(mainView).bind("scroll", this.handlerScroll);
}
cancelScroll() {
this.watchScroll = false;
angular.element(this.$window).unbind("wheel", this.handlerScroll);
let mainView = this.$window.document.querySelector('.main-view > ui-view.ng-scope');
angular.element(mainView).unbind("scroll", this.handlerScroll);
}
checkScroll() {