Reputation: 51
**JQuery window scroll event not working for odoo 14 **
The below code is not executed in the Odoo v14
`$(window).scroll(function() {
console.log("scroll event")
});`
odoo v14 this event is not execute
Upvotes: 1
Views: 734
Reputation: 145
In my case it worked in first element inside body element with id wrapwrap too, it used by Odoo as main element
document.getElementById('wrapwrap').addEventListener('scroll', function () {
console.log("scroll event")
}, false);
Upvotes: 0
Reputation: 51
I found a solution but it is only working on the first div#wrapwrap and not working with any other.
$('#wrapwrap').scroll(function() {
}
Upvotes: 4