dnd-kit icon indicating copy to clipboard operation
dnd-kit copied to clipboard

[experimental] disable auto scrolling

Open FredrikMWold opened this issue 4 months ago • 0 comments

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?

FredrikMWold avatar Sep 02 '25 18:09 FredrikMWold