Playing animation without hold the button


I am newbie in Unity. Currently, I am having an issue in making rolling character animation when swipe the screen. The rolling animation is playing if I am pressing and hold the button. but if I use swipe it is not playing. I found that the animation is not playing until finished if we don’t hold the button. but I don’t find any issue in making other animation (example: jump, explode, etc).

Please Advise

Yup I already found it,

detect and store the position of your firs time press button and play the animation. for stopping the animation, I detect the position now minus the stored position bigger than certain distance and don’t forget the rolling status.