Because it’s not a mouse button that triggers the move. Detect the MMB in the onMouseDown/Up - set a flag there. Use that flag during onMouseMove.
onMouseDown/Up
onMouseMove