mouse_range Range within click, touch, or release events of entities can be triggered by the mouse (default 1000 quants).
I don't think that there is a function that tells you whether the mouse is over the panel. I would switch the mouse_range depending on which area of the screen your mouse is.