daylilyfield / svrollbar

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

Option for alwaysVisible to only apply when area is scrollable #9

Open madeleineostoja opened 2 years ago

madeleineostoja commented 2 years ago

Following on from #4, it would be great if we had an option for alwaysVisible to only show the scrollbar if the area is scrollable. I guess you wouldn't want to change the default behaviour of the existing prop since that would be a breaking change, but I imagine you could overload it.

Eg:

daylilyfield commented 2 years ago

@madeleineostoja thanks for your proposal. and i try to implement this feature in this weekend.