Disable zoom on mobile PWA

I come with a suggestion. I think a checkbox in the settings that prevents zooming in and out on the mobile PWA (= Shortcut on home screen or app bundled with pwabuilder.com in my definition) of a discourse page would be very useful. I have demonstrated it in the video

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

If you put these lines in the header in the theme you can’t zoom in and out in the mobile PWA (in Safari I can still do it and it’s okay that way). I just think that a mobile PWA should behave like an app. And maybe Discourse should bring this feature right along in the form of an optional setting.

2 Likes

We tried this in the past and people got quite upset about it.

4 Likes

@sam Make it an option :+1:

Found this today.
I think the proper orientation is to give option to modify this on the mobile projects (as i download and edit the android source code, for example) too.

And yes, you’re right, Apple ignores this property (in the UK is mandatory by law to enable this pinch-zoom functionality, for example).