You may check the mouse_pos if it is greater than
panel_pos and less than panel_size.