componentClosestTo

fun componentClosestTo(visualOffset: Offset): InteractiveComponent

Finds the component, whose center is the closest to the specified point, preferring components horizontally adjacent.