branch feature/253-tuiles updated (0043ee1e -> 8156aeec)
This is an automated email from the git hooks/post-receive script. New change to branch feature/253-tuiles in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git from 0043ee1e ref #253 Menu sur la ligne new 8156aeec ref #253 Lazyloading des élémenrs de la page The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit 8156aeec4b87ec22656b7360c28e2f5c016d2318 Author: Cécilia Bossard <bossard@codelutin.com> Date: Thu Mar 12 16:21:48 2020 +0100 ref #253 Lazyloading des élémenrs de la page Summary of changes: .../src/main/web/tag/components/LazyLoad.tag.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/253-tuiles in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 8156aeec4b87ec22656b7360c28e2f5c016d2318 Author: Cécilia Bossard <bossard@codelutin.com> Date: Thu Mar 12 16:21:48 2020 +0100 ref #253 Lazyloading des élémenrs de la page --- .../src/main/web/tag/components/LazyLoad.tag.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pollen-ui-riot-js/src/main/web/tag/components/LazyLoad.tag.html b/pollen-ui-riot-js/src/main/web/tag/components/LazyLoad.tag.html index 805269c4..451da092 100644 --- a/pollen-ui-riot-js/src/main/web/tag/components/LazyLoad.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/components/LazyLoad.tag.html @@ -65,16 +65,16 @@ this.checkLoading = () => { let check; - if (this.opts.scrollTarget) { - // this.logger.info("scroll window : " + e.currentTarget.scrollTop + - // " - height window : " + e.currentTarget.clientHeight + - // " - top loading : " + this.refs.loading.offsetTop); - check = this.scrollTarget.scrollTop + this.scrollTarget.clientHeight > this.refs.loading.offsetTop; + if (this.scrollTarget) { + // this.logger.info("scroll window : " + this.root.scrollTop + + // " - height window : " + this.root.clientHeight + + // " - top loading : " + this.root.offsetTop); + check = this.root.scrollTop + this.root.clientHeight > this.root.offsetTop; } else { - let absolutTop = this.refs.loading.getBoundingClientRect().top; + let absolutTop = this.root.getBoundingClientRect().top; // this.logger.info("absolutTop : " + absolutTop + // " - height : " + this.scrollTarget.innerHeight); - check = 0 < absolutTop && absolutTop < this.scrollTarget.innerHeight; + check = 0 < absolutTop && absolutTop < this.root.innerHeight; } return check; }; -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
participants (1)
-
chorem.org scm