Question about widget.newTableView

Hello,

I have a question about widget.newTableView,

When I listening to the event of the rows,

it acts very different then normal buttons.

even I use

if ("release" == event.phase) then  -- do something end

It requires relative long press and release to trigger the “release” phase.

A quick tap doesn’t work.

All corona sample projects have the same issue too.

How do I improve it?

Thanks for reading. :slight_smile:

Hi @hydralisk_mk2,

Check out the optional “rowTouchDelay” parameter in the TableView widget constructor. This defaults to 110 milliseconds, but you can adjust it for quicker response… just be careful that you don’t set it so low that the user gets a “interact with row” event when he/she might just want to touch and drag the TableView up or down.

https://docs.coronalabs.com/api/library/widget/newTableView.html

Brent

Thanks Brent!

This works like a charm.

50 milliseconds seems good.

Since I am listening release event, even lower value won’t confuse the user (with drag event).

Hi @hydralisk_mk2,

Check out the optional “rowTouchDelay” parameter in the TableView widget constructor. This defaults to 110 milliseconds, but you can adjust it for quicker response… just be careful that you don’t set it so low that the user gets a “interact with row” event when he/she might just want to touch and drag the TableView up or down.

https://docs.coronalabs.com/api/library/widget/newTableView.html

Brent

Thanks Brent!

This works like a charm.

50 milliseconds seems good.

Since I am listening release event, even lower value won’t confuse the user (with drag event).