mcFrax / omicron-dnd

Fast JavaScript drag-and-drop library for desktop and mobile browsers.
MIT License
4 stars 0 forks source link

Autoscroll shouldn't trigger at the start of the drag or with too little movement #2

Open mcFrax opened 2 years ago

mcFrax commented 2 years ago

The autoscroll should be blocked until the pointer is coming from the middle part of the scroller, with a margin slightly bigger than that for the trigger zone - so that e.g. dragging by a handle being in the trigger zone or just by it wouldn't cause accidental scrolling, but would require an intentional move (first further from the edge, then towards it).

The issue is mostly important for scrollers with omicronScrollSnap, where the scroll will be immediately huge. For regular scroll it would be an improvement, but isn't crucial for user experience.