impl handle_button_press_release_event
add mouse leave event handling