fixed handling mouse button events when waiting for event to continue