componentAbove

fun componentAbove(visualOffset: Offset): InteractiveComponent

Finds the closest component, by both X and Y coordinates, which ends above the specified point. If there is no such component, returns the component closest to the specified point.