Hi,
I have two webView on the same screen.
One is for a google Map used through the app and the other, below, for displaying html.
It works but when I want to scroll down the view of the HTML webView, I have first to go up and then down. If I try to go down, the scroll do not respond.
The code is simple :
local webViewArticles
local webv2
local function webListener(event)
--webViewArticles:stop( )
end
-- WebView for displaying google map
local hauteurMax = 136
local largeurMax = 312
local top = 20
webViewArticles = native.newWebView(2, top, largeurMax, hauteurMax)
webViewArticles:request("gmap\_articles.html", system.CachesDirectory )
--webViewArticles:addEventListener("urlRequest", webListener)
-- WebView for displaying HTML
local h\_wv2 = 210
local largeurMax = 312
local top\_webv2 = 87
webv2 = native.newWebView(2, top\_webv2, largeurMax, h\_wv2)
webv2:request("article\_now.html", system.CachesDirectory )
webv2:addEventListener("urlRequest", webListener)
Also, the content is able to follow horizontally the touch of the finger, which should not be allowed by
<meta name="viewport" content="width=device-width">
<meta name="viewport" content="initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
This code works in all other Views, except when you have two webView on the same scene.
[import]uid: 5578 topic_id: 27478 reply_id: 327478[/import]