Since the parameter is unwrapped to orginalEvent object, I cannot understood the mechanism in function wichMouseButton, referring https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button , value 0 should be a valid in drag but is ignored by function startBecauseMouseMoved; besides, the priority of button property may higher then buttons since most of the browers are support button rather then buttons.
Since the parameter is unwrapped to orginalEvent object, I cannot understood the mechanism in function wichMouseButton, referring https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button , value 0 should be a valid in drag but is ignored by function startBecauseMouseMoved; besides, the priority of button property may higher then buttons since most of the browers are support button rather then buttons.