prashant mojidra
prashant mojidra

Reputation: 51

JQuery window scroll event not working for odoo 14

**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

Answers (2)

A C
A C

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

prashant mojidra
prashant mojidra

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

Related Questions