Fixed offset rounding errors in mouse events