how to disable "tap" events in tableview

Is it possible to disable “tap” events in a tableview?  That is so the “release” event will include short and non-short pushes.

Background

* I have found when listening for phase == “release” in the onRowTouch event this can be annoying for users as if they touch the row quickly it doesn’t trigger the next event in the app

* If I check for both it seems to work well "if phase == “release” or phase == “tap” then "

* The issue I have is when coming back to this view from an overlay the “tap” event is being picked up as the scene come back to the overlay, when it should not.  I have documented/posed a question about this issue separately at:

http://forums.coronalabs.com/topic/38763-listener-bug-why-does-a-2nd-listener-pick-up-this-event-in-this-code/

Hi Greg,

Not sure I understand… is the overlay positioned over top the tableView, and when you tap on it, that touch is propagating through to the TableView and triggering a tap? Please help me understand the exact issue, and which “part” of the UI it seems to be related to (the overlay or the tableView).

Thanks,

Brent

Hi Brent - So when the overlay is showing, I click on the button in the overlay and expect to then hide this and drop back to the main scene.  The thing is there is the listener from the main scene that is picking up a tap event (this was affecting my app and I tracked it down to this).  So I wouldn’t expect this behavior as:

a) the overlay is modal

b) the overlay button listener is picking up the event and then “return true” at the end

It’s kind of as if a “release” and “tap” are treated as two separate events, and when the app gets back to the main scene there is still the “tap” event lingering ready to be picked up…

Does that help?

Hi Greg,

Not sure I understand… is the overlay positioned over top the tableView, and when you tap on it, that touch is propagating through to the TableView and triggering a tap? Please help me understand the exact issue, and which “part” of the UI it seems to be related to (the overlay or the tableView).

Thanks,

Brent

Hi Brent - So when the overlay is showing, I click on the button in the overlay and expect to then hide this and drop back to the main scene.  The thing is there is the listener from the main scene that is picking up a tap event (this was affecting my app and I tracked it down to this).  So I wouldn’t expect this behavior as:

a) the overlay is modal

b) the overlay button listener is picking up the event and then “return true” at the end

It’s kind of as if a “release” and “tap” are treated as two separate events, and when the app gets back to the main scene there is still the “tap” event lingering ready to be picked up…

Does that help?

Hi!

I have been experimenting with tableView myself, and have run into the exact same issue. I am sure the overlay is modal, and the buttons stop working as expected. The tableView, however, registers a tap, especially if I scroll quickly and select the overlay before it’s stopped.

This issue only exists with the ‘tap’ event, the touch is fine.

Any ideas?

Hi!

I have been experimenting with tableView myself, and have run into the exact same issue. I am sure the overlay is modal, and the buttons stop working as expected. The tableView, however, registers a tap, especially if I scroll quickly and select the overlay before it’s stopped.

This issue only exists with the ‘tap’ event, the touch is fine.

Any ideas?