ignore touch on web-popup?

Hello,

is there a way to ignore touch events on a web-popup?
I dont want the user to be able to interact with it (unless i allow it). I tried overlaying it with a transparent image that discards all the touch events but i can’t get it in front of the popup. So this seems to be the wrong way.

Thanks! [import]uid: 11772 topic_id: 9933 reply_id: 309933[/import]

You could remove the listeners temporarily from whatever you don’t want touched in the function that launches the web pop up; Pocket Pet Rock does that when the customization tabs are opened :slight_smile: [import]uid: 52491 topic_id: 9933 reply_id: 36215[/import]

Thanks for the quick reply! Pretty cool that it’s possible to do that =) but I dont know which option parameter to set.

The docs state:
[lua]local options = { hasBackground=false, baseUrl=system.DocumentsDirectory, urlRequest=listener }
native.showWebPopup( “localpage1.html”, options )[/lua]

so I can catch touchs in the urlRequest callback? But will this disable copy and paste and scrolling too? Or am I completely on the wrong track?

Thanks! [import]uid: 11772 topic_id: 9933 reply_id: 36230[/import]