Placing button on top of webview

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]

I just tried adding the code below to detect touches anywhere on the screen but still only works outside of the webview control. Does anyone have another suggestion? Or is this impossible?

Thanks!

-- begin listening for screen touches Runtime:addEventListener( "touch", onScreenTouch ) [import]uid: 184193 topic_id: 32499 reply_id: 129242[/import]

A webview in a native element, currently they sit above all Corona display objects that are on the OpenGL canvas.

There’s not a lot you can do about it until Walter shows us what he’s been teasing about :slight_smile: [import]uid: 33275 topic_id: 32499 reply_id: 129246[/import]

I just tried adding the code below to detect touches anywhere on the screen but still only works outside of the webview control. Does anyone have another suggestion? Or is this impossible?

Thanks!

-- begin listening for screen touches Runtime:addEventListener( "touch", onScreenTouch ) [import]uid: 184193 topic_id: 32499 reply_id: 129242[/import]

A webview in a native element, currently they sit above all Corona display objects that are on the OpenGL canvas.

There’s not a lot you can do about it until Walter shows us what he’s been teasing about :slight_smile: [import]uid: 33275 topic_id: 32499 reply_id: 129246[/import]