Border click triggers on click event


I use GetHitResultUnderCursorforObjects, and when I miss buttons(blue space) in widget and click border it trace to map center(0,0,0)(orange line). How can I make border block clicks?