- Drag two or more fingers across the screen to Pan
- Pinch with 2 or more fingers together to adjust the zoom level
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Guys,
I'm trying to use zoom on images in my app, but nothing works.
I've tried using the <meta viewport> in every possible way but nothing worket. What do I do?
Thank You.
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What UI framework are you using? Are you trying to zoom to fit your device or just zooming an image within your app with pinch zoom?
Send your app and also which device are you trying on - what OS?
Swati
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Guilherme,
I have encountered another user that faced the same issue and upon further research the Intel XDK engineer I was working with discovered that in Chrome, it is possible to zoom if user scaling is enabled via the meta viewport tag. In Cordova, this is not possible by default, but it can be enabled by turning on Android accessibility gestures.
It could be that "pinch to zoom" is disabled by default in Android webviews, because it is expected that content will be sized appropriately in a webapp. Its possible that Cordova does not expose a way to enable "pinch to zoom", again because pinch to zoom is intended for websites and Cordova is intended for making web apps.
I also know of someone whose app when built against Crosswalk 12, it includes Android Cordova framework 3.6.3 and the pinch zoom does work using viewport meta tag.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have had no success using the meta tag by itself - I had to change the settings on my Samsung 5
Go to Settings > Personalization > Accessibility > Vision > Magnification Gestures
Triple tap the screen to activate the feature....

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page