Skip to content

fix non-passive wheel event listener violation#2926

Merged
moklick merged 1 commit into
xyflow:next-releasefrom
elringus:fix/wheel-violation
Mar 20, 2023
Merged

fix non-passive wheel event listener violation#2926
moklick merged 1 commit into
xyflow:next-releasefrom
elringus:fix/wheel-violation

Conversation

@elringus

@elringus elringus commented Mar 18, 2023

Copy link
Copy Markdown
Contributor

This fixes Chrome warning about non-passive wheel event listener by explicitly setting passive to false (which suppresses the warning). Fixes #546, fixes #1688.

[Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

To reproduce the issue, open https://reactflow.dev in latest Chrome version and check the console for warnings (it could be required to reload the page with console opened).

@moklick

moklick commented Mar 20, 2023

Copy link
Copy Markdown
Member

good catch, thanks!

@moklick
moklick changed the base branch from main to next-release March 20, 2023 10:33
@moklick
moklick merged commit 9fab9b8 into xyflow:next-release Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants