I am not sure how to reproduce this bug as it only happens occasionally (but it does happen). Occasionally when using an attack assigned to your right mouse button and holding down the attack, you start moving when you run out of mana instead of standing still.
I’m using both a wired mouse and keyboard. I have tried swapping out my mouse for the backup I have, and the same problem happens, though it is not consistent.