dnd-kit
dnd-kit copied to clipboard
[experimental] disable auto scrolling
I’m trying to implement drag-and-drop column ordering in a table, and I’d like to disable vertical auto-scrolling while dragging.
I came across the AutoScroller plugin, but I’m not sure how it works or how to configure it correctly.
I’m also using the RestrictToHorizontalAxis modifier, which prevents the element itself from moving vertically. However, if I drag my mouse pointer up or down, the page still scrolls vertically even though the dragged element can only move horizontally.
Is there a way to prevent this vertical auto-scroll behavior while dragging columns?