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.71k stars 215 forks source link

Fix click scrolling on pen input devices issue #631

Closed tryggvigy closed 2 months ago

tryggvigy commented 2 months ago

Fixes https://github.com/KingSora/OverlayScrollbars/issues/630

Chromium browsers seem to handle pointer events / touch events differently than other browsers.

With a pen input device such as a wacom pad or meta quest, a pointerleave event is fired on the track element while the pointer is still down (doesn't happen for mouse) This caused the click scroll to be aborted.

It's still unclear why a 'pointerleave' event is fired on the track element for pens on chromium, but simply not handling pointerleave events fixes the click scrolling issue on pens. We believe this is s relatively safe change but intend to test thorougly.

KingSora commented 2 months ago

@tryggvigy I'll release the next version probably tomorrow (we have a a public holday here in austria)

tryggvigy commented 2 months ago

No stress at all, thank you so much @KingSora! Have a great holiday