-
-
Notifications
You must be signed in to change notification settings - Fork 99
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 doesn't work if page was scrolled with native scrollbar #342
Comments
Hey @MurhafSousli did you start investigating? take a look please |
@andrei-varchanka I couldn't replicate this in the the demo, could it be caused by the stackblitz env because it is wrapped in an iframe? can you reproduce it in the demo? https://ngx-scrollbar.netlify.com/ |
@MurhafSousli https://ngx-scrollbar.netlify.com/ doesn't use native scroll for the page so i moved out the content from ngx-scrollbar to demonstrate HwVideoEditor_2021_01_18_154636.mp4 |
It seems that there is a problem with the mouse pointer position before dragging the scrollbar at that point.. A good starting point is to look at the dragging methods in https://github.com/MurhafSousli/ngx-scrollbar/blob/master/projects/ngx-scrollbar/src/lib/scrollbar/thumb/thumb.ts#L86 Help is apperciated! |
@MurhafSousli i found the fix, commit it please |
Current: return this.clientRect.top; |
@andrei-varchanka Thank you very much! |
Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/ngx-scrollbar
Steps to reproduce:
Expected Behavior
working scrollbar
Actual Behavior
content is not scrolling. (it can be scrolled only using mouse wheel but i want a working scrollbar)
Environment
https://media.giphy.com/media/kG2SL1UGEjYoLxtYJm/giphy.gif
The text was updated successfully, but these errors were encountered: