Hi there,
If this is a standard button, can you just use the “tap” listener variety instead of “touch”?
If you need to emulate a tap using a touch listener (and there are some instances you might, in fact I sometimes do), it might serve your purpose to try this:
On began phase:
theButton.inPress = true (inPress is a custom flag, not a Corona API call, name it whatever you wish)
On moved phase:
theButton.inPress = false
On ended phase:
if theButton.inPress == true then (perform your action) end
theButton.inPress = false
What this does is “cancel” the press if the user drags a sufficient distance as to trigger the “moved” phase. If you find that it’s too sensitive, there are more advanced ways to say how MUCH the user can move before the touch is cancelled, but try this and let me know if it works.
btw, the “cancelled” phase is only internal for the OS to force cancel a signal, i.e. perhaps if an incoming call comes to the phone, an active touch will be voided by the system.
Brent Sorrentino [import]uid: 9747 topic_id: 27263 reply_id: 110877[/import]