TableView onRowTouch inconsistant phase naming?

Hi. I’m currently using a TableVIew in my project and when testing on Android noticed that the touch phase returned by the event are named different to the iOS and Simulator event phases. The phases aren’t documented anywhere (not that I could find) and I thought it might save someone else time if I post my finding here.

Android returnes: “press” and “release”

iOS/Sim returns: “tap”

Incomplete code example:

local function onRowTouch( event ) print( "Phase:", event.phase ) end tableView = widget.newTableView { onRowTouch = onRowTouch }

Corona: 2015.2531

Android: Nexus S, 4.1.2

iOS: iPhone 5, 8.1.2

Regards,

Marco

Hi Marco,

We tested this and there is no issue. If you very quickly tap on the row, you’ll get a tap event. If you hold down just slightly longer, you’ll get the touch events of press and release. This is by design. The inconsistency you’re seeing is likely in how each OS considers a “tap” vs. a “touch”, meaning, one device might be more responsive, while another one may require a few more milliseconds of touch-down before it regards that as a touch (not sure if that made sense or not, sorry).

Take care,

Brent

Hi Marco,

We tested this and there is no issue. If you very quickly tap on the row, you’ll get a tap event. If you hold down just slightly longer, you’ll get the touch events of press and release. This is by design. The inconsistency you’re seeing is likely in how each OS considers a “tap” vs. a “touch”, meaning, one device might be more responsive, while another one may require a few more milliseconds of touch-down before it regards that as a touch (not sure if that made sense or not, sorry).

Take care,

Brent