Restrict the movement of the control points