Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Pinch webview openlayers

$
0
0

I'm testing Titanium for develop an application with openlayers in a local webview. I use Titanium SDK 3.2.2GA and I test my apps on 2 devices:

- Nexus 4 with Android 4.4.2
- Samsung Galxy SII with Android 4.1.2

One of the first problems that I saw is when I try to do a pinch zoom, it works so bad in both devices. I have noticed that when I have the fingers so closed the pinch zoom works fine. So I made this function:

webview.addEventListener('pinch', function(e) {
    Ti.API.info(e.sacale);
});
I could see with this function that when I have the fingers so closed the event 'pinch' is not fired and the pinch zoom works fine. Then I put the webview property touchEnabled = false and in the Nexus 4 the pinch zoom works perfectly but in the Samsung the touch interaction is totally disabled.

Anybody knows how can I do a nice pinch zoom in a webview with openlayers that works fine on every device?


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>