When I touch the tableview then transtion be pause, I do not want to. How to fix it?
Thanks
----------------------------------------------------------------------------------------- -- -- main.lua -- ----------------------------------------------------------------------------------------- -- Your code here local widget = require("widget") local function createPreview() local function onListener( event ) print("touch2") --return true end -- onEvent listener for the tableView local function onRowTouch( event ) local row = event.target local rowGroup = event.view if event.phase == "press" then --print( "Press." ) elseif event.phase == "swipeLeft" then --print( "Swiped left." ) elseif event.phase == "swipeRight" then --print( "Swiped right." ) elseif event.phase == "release" then print("Click Review ",row.id ) if row.id == "menu" then \_G.Page = 1 \_G.oldPage = 0 \_G.Check = 1 \_G.Read = 1 storyboard.gotoScene( "pagemenu", "fade" ) else if row.id \> \_G.Page then \_G.oldPage = \_G.Page \_G.Page = row.id storyboard.gotoScene( "page"..\_G.Page, "fade" ) elseif row.id \< \_G.Page then \_G.oldPage = \_G.Page \_G.Page = row.id storyboard.gotoScene( "page"..\_G.Page, "fade" ) end end end return true end -- onRender listener for the tableView local function onRowRender( event ) local row = event.row local rowGroup = event.row local img = display.newRect(0,0,200,120) img:setFillColor(1,0,1,1) img.x = 10 + img.width/2 img.y = 5 + img.height/2 img.page = row rowGroup:insert(img) if row.id ~= "menu" then local text = display.newText( row.id, 12, 0, nil, 20 ) text.x = 20 + text.width/2 text.y = 20 rowGroup:insert( text ) end end local list = widget.newTableView{ id = "listPreview", width = 220, height = 480, backgroundColor = {255,255,255,200}, noLines = true, --hideScrollBar = true, onRowTouch = onRowTouch, onRowRender = onRowRender, listener = onListener, } --list:addEventListener("touch",onListener) -- Create 100 rows, and two categories to the tableView: list:insertRow{ id = "menu", rowHeight = 130, --isCategory=isCategory, rowColor = { default = { 255, 255, 255, 255 }, over = { 255, 153, 51, 255 }, } } for i= 1,10 do local rowColor if i == \_G.Page then rowColor ={ default = { 204, 0, 153, 255}, over = { 255, 153, 51, 255} } else rowColor ={ default = { 255, 255, 255, 255}, over = { 255, 153, 51, 255 } } end list:insertRow{ id = i, rowHeight = 130, --isCategory=isCategory, rowColor = rowColor, } end return list end sceneGroupReview = createPreview() local image = display.newImage("images/p3\_dragonfly3.png",0,0,true) trans = transition.to(image,{x = 800,y = 200, time = 10000})