SyntaxFix
Write A Post
Hire A Developer
Questions
In plain JS add { passive: false } as third argument
{ passive: false }
document.addEventListener('wheel', function(e) { e.preventDefault(); doStuff(e); }, { passive: false });