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 dragging on mouse hover #512

Closed
kutaxoff opened this issue Mar 24, 2023 · 4 comments
Closed

Scrollbar dragging on mouse hover #512

kutaxoff opened this issue Mar 24, 2023 · 4 comments
Labels

Comments

@kutaxoff
Copy link

Describe the bug
Often after dragging the scroll with a cursor the scroll will keep reacting on mouse hovering it, which can be stopped by clicking the scroll again.

To Reproduce
Steps to reproduce the behaviour:

  1. Create a container with visible scroll
  2. Drag the scrollbar up and down with the cursor for a short period of time
  3. Release the cursor
  4. Move the cursor over the scrollbar without clicking

Expected behaviour
The scrollbar should not move on mouse hover.

Examples
Example in CodeSandbox - https://codesandbox.io/s/solitary-currying-3ni12n

Environment

  • Used Operating System(s): macOS Ventura 13.2.1
  • Used Browser(s) (with version): Brave 1.49.120 Chromium: 111.0.5563.64 

Additional context
Bug was detected in Angular 14 and 15 with overlayscrollbars-ngx 0.4.0

Video example - https://user-images.githubusercontent.com/23554696/227504261-73d0038d-5135-4c90-aae6-5807bd07deda.mov

@kutaxoff
Copy link
Author

Screen.Recording.2023-03-24.at.13.58.33.mov

@KingSora
Copy link
Owner

Good day @kutaxoff

Thats an interesting bug.. I'm not able to reproduce it yet, but I'll try to implement a fix for it.

@KingSora
Copy link
Owner

I've released v2.1.1 which hopefully fixes your issue :)

Please try it out and give feedback whether the issue still persists.

@KingSora
Copy link
Owner

@kutaxoff I'll close the issue now. In case the fix didn't work please feel free to reopen the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants