handleCircleTouch

fun handleCircleTouch(screenX: Float, screenY: Float): Circle?(source)

Checks if a touch at screen coordinates hits a clickable circle.

Detects circle hits by calculating the distance from the touch point to the circle center. Returns the topmost (highest zIndex) circle that was touched.

Return

The touched circle, or null if none was hit

Parameters

screenX

Screen X coordinate in pixels

screenY

Screen Y coordinate in pixels