[Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event.
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"
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.
Related ticket is https://github.com/angular/angular/issues/8866 Once they figured that out, this library can be adjusted accordingly.