daylilyfield / svrollbar

simple custom scrollbar made by svelte
https://daylilyfield.github.io/svrollbar/
MIT License
74 stars 12 forks source link

alwaysVisible doesn't dynamically update #7

Open madeleineostoja opened 2 years ago

madeleineostoja commented 2 years ago

Thanks for the excellent scrollbar library!

One minor issue, alwaysVisible doesn't seem to update when its value changes after the scrollbar has mounted/initialised.

Use-case for this: I want to show scrollbars when scrolling is available (ie: if inner content height > container height) but hide them when scrolling isn't available.

https://github.com/daylilyfield/svrollbar/issues/4 would be another reasonable solution to this use-case, namely being that I need to give users some indication that a container is scrollable without them initiating a scroll.

daylilyfield commented 2 years ago

@madeleineostoja thank you for your issue. i fixed this issue and i have just released new version. please try it if you are interested. thank you.

madeleineostoja commented 2 years ago

Thanks for the rapid fix! I'll reimplement today and confirm it's working :)