diff --git a/client/core/src/components/auto-paging/auto-paging.js b/client/core/src/components/auto-paging/auto-paging.js index 892df0f1a4..f8b07f2adf 100644 --- a/client/core/src/components/auto-paging/auto-paging.js +++ b/client/core/src/components/auto-paging/auto-paging.js @@ -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() {