From 83d805315c5141dedb1b8d8906da21e942e9689a Mon Sep 17 00:00:00 2001 From: Benjamin Vray Date: Mon, 23 Aug 2021 08:46:09 +0000 Subject: [PATCH] [FIX] website_animate: fix each time it becomes visible option Before this commit, the option "each time it becomes visible" did not work in edit mode. task-2630112 closes odoo/design-themes#490 X-original-commit: 87233c988bc4a27756876d18415796ecbe3b74a9 Signed-off-by: Quentin Smetz (qsm) --- website_animate/static/src/js/o_animate.frontend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website_animate/static/src/js/o_animate.frontend.js b/website_animate/static/src/js/o_animate.frontend.js index b87ad1214..886f39290 100644 --- a/website_animate/static/src/js/o_animate.frontend.js +++ b/website_animate/static/src/js/o_animate.frontend.js @@ -48,7 +48,7 @@ var WebsiteAnimate = { var direction = (windowTop < lastScroll) ? -1 : 1; lastScroll = windowTop; - self.items.each(function () { + $(".o_animate").each(function () { var $el = $(this); var elHeight = $el.height(); var elOffset = direction * Math.max((elHeight * self.offsetRatio), self.offsetMin);