Config Options
Locking the drag axis to horizontal, vertical, or both.
By default, you can drag on both the horizontal and vertical axes. You can change this to just one axis using the dragAxis
option.
createSwapy(container, {
dragAxis: 'both'
})
createSwapy(container, {
dragAxis: 'y' // vertical
})
createSwapy(container, {
dragAxis: 'x' // horizontal
})