Corrected some things about mouse events.