Need help with swipe controls




I have implemented swipe controls and everything mostly works fine. However, for some reason the is crouching from the false branch triggers when I just tap the screen. It works when I swipe as well but it also works when i just tap. Its not the variable itself because when I put jumping after the false branch instead it did the same thing. Also another problem is when I go from crouching to jumping. I dont want to go straight from crouching to jumping. i want the first swipe up from crouch to make the character stand and the second swipe up from crouch to be a jump. Finalley how do I make the swipes quicker. Its a little delay between movements.