Closed szmarczak closed 1 year ago
Good day @szmarczak
Nice catch - after some time of checking my math I've concluded that this is happening because I'm using rounded values provides by the browser with its offsetHeight
and offsetWidth
values. Switchting them with their corresponding getBoundingClientRect()
counterparts gets rid of this problem.
This fix will be in the next release which should be published soon. I'll inform you once its out.
@szmarczak I've published overlayscrollbars
v2.2.1
which should fix this issue! Here is the full changelog: https://github.com/KingSora/OverlayScrollbars/blob/master/packages/overlayscrollbars/CHANGELOG.md#221
In case the new release didn't fix your issue please don't hesitate to re-open or to create a new one.
Describe the bug
To Reproduce
Use the example below and scroll all the way down.
Expected behavior
Should be inside the gray bar.
Examples
https://stackblitz.com/edit/vitejs-vite-gamrvo?file=src%2FApp.svelte
Environment