Drag Event
constructor(key: Any, phase: DragPhase = DragPhase.Move, pointerXPx: Float = 0.0f, pointerYPx: Float = 0.0f, targetXPx: Float = pointerXPx, targetYPx: Float = pointerYPx, velocityXPxPerSec: Float = 0.0f, velocityYPxPerSec: Float = 0.0f, uptimeMillis: Long = 0)
Parameters
key
Physics body key associated with this drag.
phase
Drag lifecycle phase.
pointer XPx
Raw pointer X in container px.
pointer YPx
Raw pointer Y in container px.
target XPx
Target X in container px used by the drag controller.
target YPx
Target Y in container px used by the drag controller.
velocity XPx Per Sec
Estimated pointer velocity X in px/s.
velocity YPx Per Sec
Estimated pointer velocity Y in px/s.
uptime Millis
Event time in uptime millis (suitable for ordering and duration calculations).
Convenience constructor for a simple move/update event where the drag target equals the pointer position.