Skip to content

Conversation

@zhe-he
Copy link
Contributor

@zhe-he zhe-he commented Aug 26, 2025

#5710

Even if we don't set passive, its behavior is the same as passive=false. Why not proactively set passive while also removing the violation?

When the third parameter only includes passive, there's no need to add the third parameter when removing the event. This is why I only modified the addEventListener but not the removeEventListener.

@codesandbox
Copy link

codesandbox bot commented Aug 26, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@github-actions
Copy link
Contributor

github-actions bot commented Aug 26, 2025

Build Stats

file / KB (diff) bundled minified
fabric 915.373 (0) 301.655 (0)

@asturur asturur changed the title chore(): Remove mouse wheel violation chore(): Remove mouse wheel console warning by setting default explicitly. Aug 27, 2025
@asturur
Copy link
Member

asturur commented Aug 27, 2025

@zhe-he thanks for this pr.
If you need it patched on version 6 too, you need to open a PR also on the 6.x branch.

@asturur asturur merged commit a105bff into fabricjs:master Aug 27, 2025
10 of 11 checks passed
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

Successfully merging this pull request may close these issues.

2 participants