Fix bug in ConstrainMouse2D.