Skip to main content
Known Participant
October 12, 2011
Question

Touch_Tap confusion

  • October 12, 2011
  • 1 reply
  • 718 views

Hey,

I'm a little confused with the Touch_Tap and Touch_End events. I would expect Touch_End to be triggered regardless of how long ago the Touch_Begin was triggered. I would only expect Touch_Tap to be triggered when there has been a very short amount of time between the Touch_Begin and Touch_End event.

So if the user taps the screen the Touch_Tap would be triggered and if the user presses the screen and drags something for example then when the user lifts their finger the Touch_End event is triggered. What I am seeing though is both the Touch_End and Touch_Tap event are triggered. This doesn't make sense to me as the user pressed, dragged and released - they didn't tap.

Am I doing something wrong or do I actually need to compare the times between the begin and the end to decide if I wan to treat it as a tap or not?

Thanks in advance!

This topic has been closed for replies.

1 reply

timdiaconAuthor
Known Participant
October 30, 2011

sorry for bumping but surely someone must be able to answer this one...?

Colin Holgate
Inspiring
October 30, 2011

If things are as you describe, then touch_tap is directly equivalent to mousevent.click, and that sometimes needs workarounds to avoid confusion.

The help says that the touchtap event only happens if the release was on the same object that sent the touchbegin, but I can se how you would worry that a drag and drop to another place would mean the release is still over the same ovject. You could use a touchmove event to remove the touchtap listener, that would fix most problem cases.

timdiaconAuthor
Known Participant
October 31, 2011

Colin,

Now why didn't I think of that. Thanks!