Give priority to selecting rectangle corners in mousedown event