-
Notifications
You must be signed in to change notification settings - Fork 2
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
Can we fix "Scroll bar width calculated incorrectly" issue from original BSL lib? #16
Comments
I'll add that the width needs to be calculated via getComputedStyle since it's different from clientWidth. Therefore, there is a small content shift. That is, instead of
need to
As a rule, this gives a fractional number, due to which there is a minimum content shift UPD: UPD2: For myself, I solved the problem by setting the width of the scrollbar to exactly 16 px . Unfortunately, this is only possible for webkit browsers. But for this I had to redefine all the properties of the scrollbar: 01-08-2023.134539.mp4 |
@rick-liruixin Don't you have time yet? |
Sorry, I've been too busy to update. It is now complete. @krutoo @ialse |
Hi, i describe problem with original BSL library here:
willmcpo/body-scroll-lock#239
Can we fix that algorithm in this body-scroll-lock-upgrade?
The text was updated successfully, but these errors were encountered: