Skip to content

preventDefault inside passive event listener Angular #176

Answered by kalves
drprocter asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
I was facing the same issue as @axherrm after updating Angular from v14 to v16.2.15 & Lenis v1.1.13.
After check, that was an issue related to Angular not Lenis. It's a waste to try to solve this error in your component.

According to the documentation here, to prevent this behavior, you need add the following line before import 'zone.js'.

(window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'wheel'];

Solved for me !
Hope it helps

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by clementroche
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants