UI events: Drag
Making an element draggable in Pose for Vue is a simple matter of setting draggable
to true
.
posed.div({ draggable: true })
To restrict to a single axis, use either 'x'
or 'y'
.
posed.div({ draggable: 'x' })
You can use the special drag
and dragEnd
poses to animate the element while dragging is in progress: