Disable Pinch-Zoom on Mobile?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Frank Davis
    Member
    • Sep 2012
    • 85
    • 5.3.x

    Disable Pinch-Zoom on Mobile?

    Is there a way to disable pinch-zoom on mobile for VB5?
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73981

    #2
    This was disabled when vBulletin 5 shipped and we had a lot of complaints. So we enabled it. To change it for your specific site, you would need to edit the header template and change the viewport meta tag to something like:

    Code:
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    Last edited by Wayne Luke; Tue 31 Jul '18, 8:42am.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • Frank Davis
      Member
      • Sep 2012
      • 85
      • 5.3.x

      #3
      Wayne Luke that worked wonderfully, thank you so much!

      Comment

      • glennrocksvb
        Former vBulletin Developer
        • Mar 2011
        • 4011
        • 5.7.X

        #4
        Note that on Android phones (at least), there's an Accessibility setting called "Force enable zoom" that overrides that meta viewport tag set on the page. Enabling that setting allows users to pinch and zoom.

        Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

        Comment

        • Frank Davis
          Member
          • Sep 2012
          • 85
          • 5.3.x

          #5
          Originally posted by Glenn Vergara
          Note that on Android phones (at least), there's an Accessibility setting called "Force enable zoom" that overrides that meta viewport tag set on the page. Enabling that setting allows users to pinch and zoom.
          ahhhhh very good info to know. Thanks Glenn

          Comment

          Related Topics

          Collapse

          Working...