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

Transform won't update preventing snapping behavior in scrollable grid.

Open malviys opened this issue 1 year ago • 1 comments

Hi @clauderic and other contributors.

I'm using dnd-kit for couple of months and stuck into one issue where I need clamping/snapping behavior in scrollable grid. When I drag an element within a scrollable container the element won't snap to its desired location as the transform property in modifier won't update its x & y position once the dragging element reaches bottom or top viewport of its container. As the container continues to scroll and transform won't update, I'm not able to calculate the next position where the dragging element should snap.

Is there any way I can calculate how much transform x & y properties have changed while dragging.

malviys avatar Jan 08 '24 18:01 malviys

I have the same issue, the transformation returned in the modifier is not applied on the onDragEnd event. Is there perhaps another way of accessing the changes made by the modifier?

victortimsit avatar Jan 27 '24 11:01 victortimsit