From b684fb8a5c8c3e7c46b98782d78ef5f3f88238f7 Mon Sep 17 00:00:00 2001 From: Valentin Date: Tue, 9 Jan 2024 11:00:21 +0100 Subject: [PATCH] correction du bug de parallax dans les longs articles en scroll rapide --- web/themes/erabletheme/js/erabletheme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/themes/erabletheme/js/erabletheme.js b/web/themes/erabletheme/js/erabletheme.js index 608c7f2..f75689e 100644 --- a/web/themes/erabletheme/js/erabletheme.js +++ b/web/themes/erabletheme/js/erabletheme.js @@ -240,7 +240,7 @@ function moveElementsOnScroll() { if (currentPage === 'fullpage') { ornements.topOver.el.style.left = `${ornements.topOver.values.left * (window.innerWidth / 100) - window.scrollY / 4}px`; - ornements.topOver.el.style.top = `${ornements.topOver.values.top * (window.innerHeight / 100) + window.scrollY / 1.1}px`; + ornements.topOver.el.style.top = `${ornements.topOver.values.top * (window.innerHeight / 100) + window.scrollY / 5}px`; ornements.topUnderFirst.el.style.left = `${ornements.topUnderFirst.values.left * (window.innerWidth / 100) - window.scrollY / 5}px`; ornements.topUnderFirst.el.style.top = `${ornements.topUnderFirst.values.top * (window.innerHeight / 100) + window.scrollY / 1.3}px`;