Fixed more compatibility problems with mouse input. It is now tested working in all four browsers.