Hi,
I am not sure if this is a bug or some sorts of quick tap. If I tap (using mouse pointer) just a bit above the line (row separator) then the onRowTouch will fire two times. I can reproduce this on computer with “tap” phase but haven’t been able to do it on device yet and so far I can’t reproduce with “press” and “release” phase either.
This is the code:
local widget = require( "widget" ) local function onRowTouch(event) local phase = event.phase local row = event.target if event.phase == "tap" then local rowIndex = event.target.index print("Row Index: " .. rowIndex) end end -- Create the widget local tableView = widget.newTableView { left = 0, top = 0, height = display.contentHeight, width = display.contentWidth, onRowRender = onRowRender, onRowTouch = onRowTouch, listener = scrollListener } for i = 1, 5 do -- Insert a row into the tableView tableView:insertRow{} end
My build is 2646 and I’ve tried 2702 too, same result. Wonder if this is a bug or normal behavior due to imperfect tap.
Thanks,
So Lin
