Any movement during skill casting interrupts the casting. Also, you can interrupt it manually and stop auto-attacking by pressing X.