noeldelgado / gemini-scrollbar

:first_quarter_moon: Custom overlay-scrollbars with native scrolling mechanism for web applications
https://noeldelgado.github.io/gemini-scrollbar/
MIT License
429 stars 63 forks source link

Thumb hasn't min height #41

Closed vlukyanoff closed 7 years ago

vlukyanoff commented 7 years ago

If there lots of elements in scrollable view, thumb is very small

noeldelgado commented 7 years ago

Hi @vlukyanoff, I just published a new version (v1.5.0) which adds a new config option minThumbSize, its default value is 20(px) [941455b].

Please let me know if that works for you.

Cheers.

vlukyanoff commented 7 years ago

Hi @noeldelgado, I tested version 1.5.0, it works how I expected, thanks a lot!

Could you update dependency to v1.5.0 in https://github.com/noeldelgado/react-gemini-scrollbar ?

noeldelgado commented 7 years ago

Hi Viacheslav, thanks for testing!

There is one thing I have to make sure before I update the dependency on react-gemini... in version 1.4.x of gemini it was introduced a feature which modifies the DOM structure (which as far as I remember, react does not like that at all), I think you can reproduce the issue by using the new version and appending new elements to the scroll-content dynamically, that will result in reseting the scroll position to zero... I will try to test if the issue is not happening anymore or fix it before I upgrade the dependency version.

Thanks for your help!

noeldelgado commented 7 years ago

updated