KingSora / OverlayScrollbars

A javascript scrollbar plugin that hides the native scrollbars, provides custom styleable overlay scrollbars, and preserves the native functionality and feel.
https://kingsora.github.io/OverlayScrollbars
MIT License
3.9k stars 215 forks source link

Scroll bars do not appear on wacom tablet #690

Open gurievvlad opened 6 days ago

gurievvlad commented 6 days ago

Describe the bug I'm using the library with autoHide: 'leave'. When I hover my mouse over the content area, scroll bars appear. However, if I move the cursor with the wacom tablet pen, the scrollbars don't appear. It's worth noting that I'm aware of the pointers parameter, but adding/modifying/removing it doesn't solve the problem.

To Reproduce Steps to reproduce the behavior:

  1. Create any template with autoHide: 'leave'
  2. Place the mouse pointer over the scroll area using the tablet pen
  3. Scrollbars will not be displayed

Expected behavior Scrollbars are expected to be displayed

Example https://stackblitz.com/edit/overlayscrollbars-3gjxhu?file=src%2Factions.ts https://github.com/user-attachments/assets/5957a021-5e32-428d-92d3-8dc3ec9209b9

Environment

KingSora commented 1 day ago

Good day @gurievvlad :)

Since I don't have a wacom tablet or any other pen-device at the moment its a bit hard for me to reliably fix the issue myself. I've tried to implement a fix here: https://stackblitz.com/edit/overlayscrollbars-f31xee please try it out and give feedback

gurievvlad commented 11 hours ago

Yeah, it really works. Thank you so much! Can I expect a release of the fix soon?