Skip to content

Respond to onWheel events #486

Answered by inokawa
jackhodkinson asked this question in Q&A
Discussion options

You must be logged in to vote

What you posted, or getting scrollable element with document.querySelector like #387 (comment) are the easiest ways I think. Or if you use Virtualizer instead of VList, you can access the scrollable element directly.

And I think it's ok to add onWheel to the type definition of props of VList like onKeyDown if it's convenient. Maybe I'll fix it later(or PR welcome).

"className" | "style" | "id" | "role" | "tabIndex" | "onKeyDown"

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@inokawa
Comment options

Answer selected by jackhodkinson
@jackhodkinson
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants