dnd-kit
dnd-kit copied to clipboard
Transform won't update preventing snapping behavior in scrollable grid.
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.
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?