mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[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#489 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
@@ -45,7 +45,7 @@ var WebsiteAnimate = {
|
|||||||
var direction = (windowTop < lastScroll) ? -1 : 1;
|
var direction = (windowTop < lastScroll) ? -1 : 1;
|
||||||
lastScroll = windowTop;
|
lastScroll = windowTop;
|
||||||
|
|
||||||
self.items.each(function () {
|
$(".o_animate").each(function () {
|
||||||
var $el = $(this);
|
var $el = $(this);
|
||||||
var elHeight = $el.height();
|
var elHeight = $el.height();
|
||||||
var elOffset = direction * Math.max((elHeight * self.offsetRatio), self.offsetMin);
|
var elOffset = direction * Math.max((elHeight * self.offsetRatio), self.offsetMin);
|
||||||
|
|||||||
Reference in New Issue
Block a user