Hello,
Below is some code I tested with. It places a webview and then a green circle that follows my finger. The green circle is behind the webview. Is there any way to make it on top? I’m trying to find a way to detect a touch on the webview and know the X/Y of where. So i tested with this green circle and if that worked I owuld make it static in one place as a transparent png.
Can I detect a touch on the overall screen no matter what controls are there?
Thanks
local webView = native.newWebView( 0, 0, 320, 480 )
webView:request( "http://www.coronalabs.com/" )
local circle = display.newCircle(50, 50, 100)
circle:setFillColor(0,255,00)
local function moveCircle( event )
circle.x = event.x
circle.y = event.y
end
Runtime:addEventListener("touch", moveCircle)
[import]uid: 184193 topic_id: 32499 reply_id: 332499[/import]
[import]uid: 33275 topic_id: 32499 reply_id: 129246[/import]