3 Replies Latest reply on Dec 6, 2016 3:31 AM by g.bollmann

    How to cancel touchend when touchmove is fired or when I have moved the screen

    Andres Angel Level 1

      Hi All.

       

      I'm building a  cocktail recipes app and was using click as the event trigger but the response time is very slow when i test it on my phone,  so I want to try touchend as the trigger but if I touch the screen to scroll, when i let go the event where I touched the screen gets fired. How do I disable touchend when I have moved or scrolled the screen with my finger.

       

      I've attached a pciture so you'll see hpw it's supposed to work. the "button" will be both the image and text.

       

       

      Many thanks

      Screen Shot 2015-07-17 at 2.19.27 PM.png