Hello,
I am trying to implement a swipe event in my webview.First thing I tested the touch events,but with no luck.The touch events do not get detected in my webview,and I do not know why.
local secondWindow = native.newWebView ( display.contentCenterX, display.contentCenterY, 320, 568) ; secondWindow:request ("http://www.youtube.com/"); sceneGroup:insert (secondWindow); local function Swipe (event) if (event.phase == "began") then secondWindow:reload(); -- then the user will switch to another webview end return true; end secondWindow:addEventListener( "touch",Swipe);
Thank you!