Fixed a few mouseEvent bugs.