Sortable icon indicating copy to clipboard operation
Sortable copied to clipboard

Marking other HTML elements as "non-drop targets"?

Open ffxsam opened this issue 2 years ago • 1 comments

First off, thanks for this awesome library!

I'm having an issue with autoscroll. Because I have a fixed toolbar at the top of my page, when a user drags a sortable item up to the top of the page, it won't scroll because (I assume) it thinks the user might want to drop the item on the toolbar.

Is there a way for me to mark HTML elements as non-drop targets, so SortableJS ignores these? The only hack I can think of (not ideal) is to detect when an item is dragging, and then globally set all fixed elements with pointer-events: none.

ffxsam avatar Jan 30 '22 22:01 ffxsam

https://github.com/SortableJS/Sortable/issues/1582

Timo534 avatar Jul 01 '22 03:07 Timo534