vue-virtual-scroller
vue-virtual-scroller copied to clipboard
Allow mouseenter/mouseleave events to be disabled
The mouseenter and mouseleave event listeners have shown some performance issues, and there's some demand for them to be toggleable as a result. This PR adds a prop for disabling these events.
There's no breaking changes – if you don't use the prop, nothing will change.
Usage:
<RecycleScroller :detectHover="false" />
This resolves #178
I had a perf issue where every time my mouse was entering or leaving an item all my visible item was updated. After some research and tests I found that removing those two event fixed it.
This PR would be appreciated.
Sadly, This PR is not include in release
Thanks for your PR! We now already have a skipHover prop. I will merge all the changes from the v1 (for Vue 2) to the Vue 3 version soon!