clear state variable after touch ended