-
-
Notifications
You must be signed in to change notification settings - Fork 535
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
[2.0.1] Native scrollbar is flashed when the view first starts overflowing #46
Comments
Hi, |
Hey! I tried to create a test to reproduce the issue, but failed to create a minimalistic example. I think the scroll was flashing due to the complexity of my view rendering - it added a lot of things to the browser main queue and by the time the queue got to the SimpleBar, the browser had already decided to render the default scrollbar. I cannot give you a reproducible testcase right now, sorry. I'll look into it a bit more on my own for now, Currently it seems it's entirely my fault. 😐 Great library, thank you for your efforts! |
Ok thanks for this. I hope it's not caused by the Mutation Observer, I didn't test it in situation with a big DOM and lot of manipulations. |
While trying to create a testcase to replicate the issue at hand, I ran across another issue: scrollbar slider position calculations. In scrollable areas with extremely long content, the scrollbar slider position seems to be calculated a bit wrong, causing the native scrollbar to appear as well. See the fiddle below. Scroll to the bottom to see the issue. (Windows 10, Chrome 55, Simplebar 2.0.1). |
Oh that's a weird one! Ok got it, it's a miscalculation of the height, it doesn't take the padding into account. Thanks for this! |
Hmm, true. Could be related to the fact that it is a fragment inside an iframe, not in an actual website. |
Fixed in 45abdcb |
Simplebar 2.0.1. Chrome 55. Windows 10.
When a view goes from not needing a scrollbar to needing a scrollbar, the native scrollbar will flash for a brief moment of time. Probably due to debouncing and/or initialization times.
I wonder if there are any ways to avoid the flashing?
The text was updated successfully, but these errors were encountered: