Software Archive
Read-only legacy content
17061 Discussions

Image Zoom

Guilherme_C_
Beginner
540 Views

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.

0 Kudos
3 Replies
Swati_S_Intel1
Employee
540 Views

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

0 Kudos
Anusha_M_Intel1
Employee
540 Views

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. 

0 Kudos
Jeanmarie_L_
Beginner
540 Views

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....

  • Drag two or more fingers across the screen to Pan
  • Pinch with 2 or more fingers together to adjust the zoom level
0 Kudos
Reply