autoPaging bug fixed onScroll
This commit is contained in:
parent
eaf4bbbdbb
commit
c838d98010
|
@ -56,12 +56,14 @@ class AutoPaging {
|
||||||
startScroll() {
|
startScroll() {
|
||||||
this.watchScroll = true;
|
this.watchScroll = true;
|
||||||
this.checkPosition();
|
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() {
|
cancelScroll() {
|
||||||
this.watchScroll = false;
|
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() {
|
checkScroll() {
|
||||||
|
|
Loading…
Reference in New Issue