2 Replies Latest reply on Aug 13, 2014 12:40 PM by Robyn_cpl

    Click overwrite touch event on tablets?

    Robyn_cpl Level 2

      Hello

       

      Does the click events overwrite the touch events on tablet devices?

       

      I have a edge project that I need working on the computer and on Ipads.

      But I cant tell if its the click event that is working or the touch event working on the Ipad

       

      Can anyone help?

        • 1. Re: Click overwrite touch event on tablets?
          jbowden Adobe Employee

          Hi Robyn,

           

          Click events won't overwrite touch events on iOS devices - both event types are supported.

           

          However, touch events are fired instantly on touch, and will override click events if they both coexist on the same element. Also, click events in iOS have a built-in delay of about 300 ms to allow touch events (if they exist) to fire first.

           

          hth,

          Joe

          • 2. Re: Click overwrite touch event on tablets?
            Robyn_cpl Level 2

            Thank you for clearing that up for me

             

            So even if I have both and the code is the same on the click and touch start/end the touch will fire first because of the delay.

            That delay explains quite a lot. I thought it was my browser being laggy.

             

            Thanks again