Tap hold?

Hi,

Is it anyhow possible to know if the user is holding a button which is using tap event???

Thanks!

Here is the documentation on “tap” events. I don’t believe it can identify a “touch and hold” interaction. For that, you would need to use a “touch” event.

http://docs.coronalabs.com/guide/events/touchMultitouch/index.html

Yeah i saw it, but i taught maybe someone knows some hacks !!

You might want to consider moving to using “touch” events if you want to identify when users are “holding” down a button. 

Is there a specific reason you want the “tap” event to operate more like a “touch” event?

Just use touch listeners.

Began phase is initial touch for button.

If there must be some actions on other objects tied to it you might wanna for example dispatch events (or handle functionality in touch listener) - general idea: OnPress, OnRelease.

In this case you have event when the button is pressed and when is released. Releasing in most obvious case is lifting finger - but also if that’s an issue - in move phase of event, you might fire this event, if you don’t wanna count moving finger as holding the button.

Here is the documentation on “tap” events. I don’t believe it can identify a “touch and hold” interaction. For that, you would need to use a “touch” event.

http://docs.coronalabs.com/guide/events/touchMultitouch/index.html

Yeah i saw it, but i taught maybe someone knows some hacks !!

You might want to consider moving to using “touch” events if you want to identify when users are “holding” down a button. 

Is there a specific reason you want the “tap” event to operate more like a “touch” event?

Just use touch listeners.

Began phase is initial touch for button.

If there must be some actions on other objects tied to it you might wanna for example dispatch events (or handle functionality in touch listener) - general idea: OnPress, OnRelease.

In this case you have event when the button is pressed and when is released. Releasing in most obvious case is lifting finger - but also if that’s an issue - in move phase of event, you might fire this event, if you don’t wanna count moving finger as holding the button.