-
-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Per axis visibility? #611
Comments
Good day @sharifzadesina :) Currently the I agree that this seems to be a bit unintuitive especially for the The new behavior would look like this: This would remove the possibility to show the scrollbars even if the Lets go through some options to illustrate before and after results: Before: { overflow: { x: 'hidden', y: 'scroll' }, scrollbars: { visibility: 'visible' } } // both axis always visible
{ overflow: { x: 'hidden', y: 'scroll' }, scrollbars: { visibility: 'hidden' } } // both axis always hidden
{ overflow: { x: 'hidden', y: 'scroll' }, scrollbars: { visibility: 'auto' } } // x-axis: always hidden, y-axis: visible when overflow
{ overflow: { x: 'hidden', y: 'hidden' }, scrollbars: { visibility: 'visible' } } // both axis always visible After: { overflow: { x: 'hidden', y: 'scroll' }, scrollbars: { visibility: 'visible' } } // x-axis: always hidden, y-axis: always visible
{ overflow: { x: 'hidden', y: 'scroll' }, scrollbars: { visibility: 'hidden' } } // both axis always hidden
{ overflow: { x: 'hidden', y: 'scroll' }, scrollbars: { visibility: 'auto' } } // x-axis: always hidden, y-axis: visible when overflow
{ overflow: { x: 'hidden', y: 'hidden' }, scrollbars: { visibility: 'visible' } } // both axis always hidden Do you think this solution would improve the behavior of the |
@KingSora First of all, Thank you for your great work, this library really helped me a lot (all other libs are really old and not maintained anymore). |
Any update on this? If you have any recommendations, I can send a PR. |
@sharifzadesina sorry, life is busy atm... I'll try to release a new version this weekend :) |
@sharifzadesina I've published overlayscrollbars v2.6.0 which contains the mentioned changes. Please try it out and give feedback :) |
@KingSora Thank you, everything seems fine. |
Is your feature request related to a problem? Please describe.
For better UX, I want to show the scrollbar's "track" to the user even if there is not enough content for the scrollbar to appear, so the user will know this section is scrollable.
Describe the solution you'd like
We already have the option
scrollbars.visibility
but when I set it tovisible
it makes both the Y and X (!) axes visible, I can't specify I only want the Y axis (a common case) and theoverflow
options actually don't do anything?!Edit:
I already tried this and it doesn't work?!
The text was updated successfully, but these errors were encountered: