Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. #303

Open
delsner opened this issue Feb 21, 2018 · 2 comments

Comments

@delsner
Copy link

delsner commented Feb 21, 2018

Hi,

when trying to use ngx-page-scroll together with @angular/material on Angular 5.x I get the following error when trying to scroll to any element:

zone.js:1666 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive.

Does anybody have an idea how to fix it?

@angular/material: "5.2.2"
@angular: "5.1.2"
ngx-page-scroll: "4.0.2"
@Nolanus
Copy link
Owner

Nolanus commented Feb 21, 2018

Hi,
that problem has been mentioned in an older ticket already: #191. The resolut was that non-passive listeners are not support by angular so far making it impossible to register such an event-listener "the angular way".
I'll investigate whether something has changed in the meantime, but feel free to research on your own and let me know about a solution.

@Nolanus
Copy link
Owner

Nolanus commented May 31, 2019

Related ticket is angular/angular#8866
Once they figured that out, this library can be adjusted accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants