I am using a tableView where some rows have 3 buttons (touch listeners). I usually use scrollviews but the delayed rendering of rows in a tableView was the main reason I chose to use a tableView instead.
But it seems that the takeFocus function call does not exist, which I think is required to make a distinction between scrolling and pressing a button
How can I pass the touch event back to the tableView when a touch event on my button is a scroll movement? See code below.
function scene:onImageTouch(evt) if evt.phase == "began" then print ("imagetouch began") -- animate a button down elseif evt.phase == "moved" then local dy = math.abs((evt.y - evt.yStart)) if dy\>10 then print ("imagetouch moved") -- raises error: takeFocus is nil myTableView:takeFocus(evt) end elseif evt.phase == "ended" then print ("imagetouch ended") -- animate a button up self:onButtonPressed() end return true end