handleZoomPanGesture
fun handleZoomPanGesture(event: MotionEvent, ctx: Context, onFirstPointerDown: () -> Unit, onGestureEnd: () -> Unit): Boolean(source)
Processes a two-finger zoom/pan gesture event. Handles scale detection, panning, and the snap-back animation after finger lift.
Return
Always true (event consumed).
Parameters
event
The motion event (should have pointerCount >= 2 or lastPan != null).
ctx
Context used to create the ScaleGestureDetector on first call.
onFirstPointerDown
Called on MotionEvent.ACTION_POINTER_DOWN (e.g. hide player UI).
onGestureEnd
Called when the gesture ends (e.g. reset caller touch state).