Disabling Pointer Events While Scrolling #850
-
When developing a new feature, where every virtual element has a pointer event handler, we noticed the scrolling performance wasn't as smooth as we liked. A colleague pointed out to me that disabling pointer events while scrolling can help improve performance. This functionality seems to be implemented in other virtualization libraries, but not in TanStack/virtual. Is this something that has already been considered? The implementation we wrote wound up being straightforward. If you think this would make sense I'd be happy to try open a PR. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
As virtual is low level hook you can implement disabling pointer events while scrolling in component. |
Beta Was this translation helpful? Give feedback.
-
Thanks for quick reply, for folks who might not have the experience about this issue, would it make sense to add an example in the docs? |
Beta Was this translation helpful? Give feedback.
As virtual is low level hook you can implement disabling pointer events while scrolling in component.