sa-si-dev / virtual-select

A javascript plugin for dropdown with virtual scroll
https://sa-si-dev.github.io/virtual-select
MIT License
244 stars 57 forks source link

Detached ballon flickering when scrolling #156

Closed gnbm closed 2 years ago

gnbm commented 2 years ago

Hello. I updated the library to version 1.0.30 (I was using 1.0.27) to take advantage of an issue that was reported to be fixed (#144) but got another issue. Basically, when we have dropboxWrapper='body' and we are scrolling with the detached ballon, the animation is not fluid and we get a flickering. Probably using a requestAnimationFrame() would do the trick but I was not able to try it out

DropdownDettached

Keep up the great work on this amazing component that is getting better and better!!

sa-si-dev commented 2 years ago

I have throttle time of 100ms for scroll event. I will give a property to configure it in the future release.

sa-si-dev commented 2 years ago

@gnbm use updatePositionThrottle property to fix this issue.

This property is available from the release v1.0.31

gnbm commented 2 years ago

Awesome @sa-si-dev Thank you for the feedback and once again great work on this component 🚀