From c838d9801023d0e143db2204ed20eef8ef6664f2 Mon Sep 17 00:00:00 2001 From: Daniel Herrero Date: Thu, 3 May 2018 20:46:08 +0200 Subject: [PATCH] autoPaging bug fixed onScroll --- client/core/src/components/auto-paging/auto-paging.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/core/src/components/auto-paging/auto-paging.js b/client/core/src/components/auto-paging/auto-paging.js index 892df0f1a..f8b07f2ad 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() {