autoPaging bug fixed onScroll
This commit is contained in:
parent
eaf4bbbdbb
commit
c838d98010
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue