ThibaultJanBeyer / DragSelect

An easy JavaScript library for selecting and moving elements. With no dependencies. Drag-Select & Drag-And-Drop. – Examples:
https://dragselect.com/
Other
715 stars 81 forks source link

Trouble Updating Selector Position with OverlayScrollbars #220

Closed n1crack closed 5 months ago

n1crack commented 5 months ago

Issue: I've recently integrated OverlayScrollbars into my project and managed to get it working smoothly, even on mobile devices. However, I encountered an issue with the selector element when dragging it while active. Despite successfully updating the scrollbar using the DS:scroll event, the selector element remains fixed at its initial position and height, failing to adjust dynamically with scrolling. ( for mobile I need to use this scrollbar, since ios doesn't show the scrollbar by default)

Request: Could you advise on how to update the selector class dynamically along with the scrollbar when scrolling? Any insights or suggestions would be greatly appreciated.

https://kingsora.github.io/OverlayScrollbars/

n1crack commented 5 months ago

a little bit hacky but I found a solution :)