Why my topdown 2D character slows down when running diagonally along a wall ?

It’s from a plugin called PaperZD.
I followed this tutorial to make it