disable doubletap zoom on ios

  1. 7 weeks ago

    Russ L

    Jan 1 Pre-Release Testers, Xojo Pro

    HI,

    Happy new year!

    I've been working on a web app that will be used on iPhone. i have a specific page that loads for iPhone which works well
    but when the user double taps on buttons or listboxes (or when a webdialog displays) the screen zooms in and out which isn't great.

    is there a way to disable that behaviour?

    Russ

    Add this meta tag to the headers

    <meta name="viewport" content="width=device-width, user-scalable=no" />
  2. Tim P

    Jan 1 Pre-Release Testers Answer feedback://46303

    Add this meta tag to the headers

    <meta name="viewport" content="width=device-width, user-scalable=no" />
  3. Russ L

    Jan 1 Pre-Release Testers, Xojo Pro

    thanks @Tim P
    i added that to the preparesession event and it seems to work really well except when clicking on buttons that are in a containercontrol. Have i added it to the correct place?

  4. Russ L

    Jan 2 Pre-Release Testers, Xojo Pro

    I could not find a way to stop containers from zooming so i have had to put all the controls on the page.

    its a right old mess to work with, but it works.

    Thanks for your help!

or Sign Up to reply!