noeldelgado / gemini-scrollbar

:first_quarter_moon: Custom overlay-scrollbars with native scrolling mechanism for web applications
https://noeldelgado.github.io/gemini-scrollbar/
MIT License
428 stars 63 forks source link

Enables support for Chrome subpixel precision #22

Closed coffee-with-bee closed 8 years ago

coffee-with-bee commented 8 years ago

When page is styled with rem units and scaled, container gets positioned at fractional coordinates while offsetWidth report rounded value. This results in 1px of scrollbar being visible http://codepen.io/anon/pen/obVyMY (Chrome 49.0.2618.8). Also for chrome getBoundingClientRect of test scroll div reports ~ 15.45px, while current test method reports 15px

coffee-with-bee commented 8 years ago

It may be an issue with Chromium, since it's not consistent across version. http://codepen.io/anon/pen/JGVWZe some version blink scrollbar, some doesn't. As workaround better set ::-webkit-scrollbar { visibility: hidden }