1. Config Options
  2. Swap Mode

The default behavior is to swap items as soon as you hover the dragging item on any slot. You can change that to make them swap when you drop the item.

Hover (default)

createSwapy(container, {
  swapMode: 'hover'
})
A
B
C
D

Drop

createSwapy(container, {
  swapMode: 'drop'
})
A
B
C
D