Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

how to remove the zoom in and zoom out buttons on the browser
Started by eto_ru Dec 02 2018 08:56 AM

3 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

eto_ru

[GLOBAL: userInfoPane.html]
eto_ru
  • Enthusiast

  • 35 posts
  • Corona SDK

how to remove the zoom in and zoom out buttons on the browser



[TOPIC: post.html]
#2

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,585 posts
  • Corona SDK

I think you'll have to give us a lot more details than this.

 

What browser?



[TOPIC: post.html]
#3

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,786 posts
  • Enterprise

I'm going to assume you're talking about a native.newWebView() and you're on Android. The short answer is you can't.

 

Rob



[TOPIC: post.html]
#4

schroederapps

[GLOBAL: userInfoPane.html]
schroederapps
  • Contributor

  • 466 posts
  • Corona SDK

It’s been a while since I used this trick so YMMV but if you are in control of the page source for the page you are loading in the webview, then add this tag to your page’s <head> tag:

<meta name="viewport" content=" initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>

If you’re just loading a 3rd party page, then this trick won’t work, of course.

(Sorry for the poor formatting; writing this on my phone.)


[topic_controls]
[/topic_controls]