Pressing secondary mouse button when wielding a melee weapon or any other item that does not have ironsights/optics acts as though the player is aiming through the optics and prevents jogging, this is highly unintuitive as there is no visual confirmation of this state.
Sprinting in this condition works normally.