Fixed the mouse input problem. Need to test the fix in other browsers though.