LavaUI docs GitHub

enum CanvasGesturePhase

Swift

enum CanvasGesturePhase

A phase in a Canvas pointer gesture — a press, its drag, and its release.

Sources/LavaUI/Canvas.swift:24

Cases

case began

The hit test that starts the gesture and captures the pointer.

Sources/LavaUI/Canvas.swift:26

case moved

Delivered on every move after .began, even once the pointer has left the canvas's own bounds — the same capture lifecycle Slider/TextField get from PointerCapture, just surfaced.

Sources/LavaUI/Canvas.swift:30

case ended

Button released. Always paired with a .began.

Sources/LavaUI/Canvas.swift:32