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

Scrollbar flickering, adding and removing mCS_no_scrollbar when browser is zoomed in or out #646

Open
jonathanblancor opened this issue Nov 14, 2019 · 2 comments

Comments

@jonathanblancor
Copy link

When I zoom out to 80% in the browser (I only tried in Chrome) using the mouse wheel the scrollbar starts to flicker/shake adding and removing the mCS_no_scrollbar class.

It alternates between adding a scrollbar and removing it.

Please see the GIF attached. One is of the web page and the other one is of the code in DevTools. When I zoom in or out to 80% the problem happens.
webpage
code

Let me know if more info is needed. Thank you.

@jonathanblancor jonathanblancor changed the title Scrollbar flickering, adding and removing mCS_no_scrollbar when browser is zoomed out Scrollbar flickering, adding and removing mCS_no_scrollbar when browser is zoomed in or out Nov 14, 2019
@clemens1483
Copy link

Hi, you probably have long solved this issue but I just came across it on my website and found a possible solution for it: Add auto height to mCSB_container:

.mCSB_container {
  height: auto;
}

It is probably best to not use the class but rather find the id of your particular container and use that instead, e.g. you might use something like #mCSB_3_container { ... }. I hope this helps!

@jonathanblancor
Copy link
Author

jonathanblancor commented Jul 8, 2020

@clemens1483 Thank you for the reply. The error does not happen anymore when zooming out to 80%, maybe it had to do with some browser specific update.

I will have to try other scenarios, and give your solution a try.

Thank you again.

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

2 participants