hitTest
Hit testing is a process used in graphical user interfaces to determine which visual element should receive an input event at a given point, such as a mouse click or a touch. It maps coordinates in a window or canvas to a target element within a hierarchy of views or components. The result is typically the frontmost interactive element under the point.
In many frameworks, each visual element provides a method to test whether a point lies within its
Key considerations include interactivity flags (such as enabled or userInteractionEnabled), visibility (hidden or fully transparent), and
Variants and related concepts include using hit testing for event dispatch, hit-testing for accessibility, and, in