Skip to content

Conversation

@thecrypticace
Copy link
Contributor

This inlines the useInnerOffset hook from Floating UI and makes its wheel listener passive. Need to do some testing to verify that this functions as expected though.

Fixes #3805

@vercel
Copy link

vercel bot commented Oct 30, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
headlessui-react Ready Ready Preview Comment Oct 30, 2025 2:34pm
headlessui-vue Ready Ready Preview Comment Oct 30, 2025 2:34pm

@thecrypticace
Copy link
Contributor Author

Oh this one may call event.preventDefault(). I didn't even notice this. This means it can't be passive.

This means the proper replacement for this is rebuilding the feature entirely in a way that doesn't rely on that. Not sure how feasible that is.

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.

Non-passive wheel event listener warning in ListboxOptions (Chrome performance warning)

2 participants