Skip to content

Solution for "[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive." #319

@Hydra9268

Description

@Hydra9268

If anyone has encountered this issue, I've fixed it.

On line 329, replace

if (e.preventDefault && !releaseScroll) { e.preventDefault(); }

with

if (e.preventDefault && !releaseScroll) {  e.target.blur(); }

Remove line 330

if (!releaseScroll) { e.returnValue = false; }

Inside the else on line 350, add

document.onmousemove = function (e) { e.returnValue = false };

That will allow the script to correctly return a false value during the scroll wheel event. Hope that helps! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions