More fixes to mouse input.