After looking at the map your weapon are lowered. You get it back if you change to optics or raise you weapon. But if you are running or walking forward when you changing to optics you keep running or walking. you can stop it if you change weapon.
I have't find any other action that trigger you to stuck walking or running.