[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#491
X-original-commit: 87233c988b
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user