This is in the 2013.2100 simulator, but I was thinking there’s a conceptual mistake on my part rather than something version specific.
In other words, I would onRowTouch to delete a row if it’s touched on the part showing a delete graphic, rather than adding (and removing, with rows deleted etc… brrr!) listeners and keeping track of buttons on each row.
I do get a proper touch cycle, so why can’t it be done this way? Example code:
-- Handle touches on the row local function onRowTouch( event ) local phase = event.phase local row = event.target local i=row.index if ("release" == phase) and (i\>0) then print("event.x:",event.x) -- prints nil end end