handleCircleTouch

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

x

Screen X coordinate in pixels

y

Screen Y coordinate in pixels