Skip to content
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

How to handle embedded scrollbars #158

Open
tacman opened this issue Aug 3, 2023 · 0 comments
Open

How to handle embedded scrollbars #158

tacman opened this issue Aug 3, 2023 · 0 comments

Comments

@tacman
Copy link

tacman commented Aug 3, 2023

Perfect Scrollbar rocks, thanks for making it available.

I'd like to wrap the datatables searchpanes in a scrollbar, and I'm wondering what the best way to do this is.

https://museado.org/en/coll/

image

Each facet has it's own table with a scrollbar and search, and since there can be many types of facets, I want to be able to go to the facets at the end. In the example above, the "language" facet is at the bottom, I use perfect scrollbar to be able to navigate without losing the contents on the right

image

Of course, nested scrollbars isn't a great user experience, scrolling the left sidebar jumps around, depending on the mouse position.

I'm wondering if there's a solution to this. For example, is it possible to move the perfectScrollbar slider to the left, and only navigate with the mouse is over the slider? Or making the scrollbar itself wider (and a different color?) to make it easier to grab? Or have perfect scrollbar react to mouse wheel events only if ALT is pressed?

I realize that nested scrollbars are inherently complicated, and I'm no javascript/css expert, but figured I'd ask if someone has an idea.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant