GestureConfig
constructor(onTap: (TapEvent) -> Unit? = null, onDrag: (DragEvent) -> Unit? = null, onDragStart: (DragEvent) -> Unit? = null, onDragEnd: () -> Unit? = null, dragThreshold: Float = 8.0f)
Parameters
onTap
Called when the user taps the scene. The TapEvent includes screen coordinates and, when hit testing is active, the tapped IsometricNode.
onDrag
Called continuously as the user drags across the scene, providing the current DragEvent with screen coordinates.
onDragStart
Called once when a drag gesture is first recognised, providing the initial DragEvent with screen coordinates.
onDragEnd
Called once when the drag gesture finishes (finger lifted).
dragThreshold
Minimum distance in pixels the pointer must move before a drag is recognised. Must be non-negative. Defaults to 8f.