7 ms·
Do what they say, not what they do! maximum-scale has only three valid uses: 1. extreme values, like 5.0, if a browser misdetects that zooming that far is use
by bcoates 7y ago
Do what they say, not what they do!
maximum-scale has only three valid uses:
1. extreme values, like 5.0, if a browser misdetects that zooming that far is useful when it isn't (rare)
2. pure-app websites like maps or video games that have alternative scaling arrangements and browser pinch-zoom gets in the way.
3. there is no number three, and the thing you are thinking of is incorrect.
maximum-scale is an automatic usability and accessibility fail otherwise, you are bad and should be made to feel bad if you use it.
- kizer 7y agoIf you limit it to 1.0 by default across the board, in particular, you mean, right?
- kizer 7y agoThis is the thing that limit the zoom-out with a pinch in safari/scroll beyond the page and see the "surface" underneath I'm assuming correctly hopefully
- bcoates 7y agoThere's no reason to ever defeat the pinch-in behavior, it's what lets the user know the page is fully zoomed out. maximum-scale=1.0 causes the page to be unscalable on mobile and is almost never what you want.
- jsploit 7y ago> maximum-scale is an automatic usability and accessibility fail I wish more people realized this. As somebody that's visually impaired, it makes mobile browsing quite painful for me.
- matthewhartmans 7y agojust out of curiousity, how do you deal with this problem in native apps where pinch zoom is disabled?
- Rotten194 7y agoYou can't, and it sucks. That's why the web is better, or at least why it's supposed to be better.
- jsploit 7y agoTaking screenshots and zooming in on those... a very tedious process.
- chongli 7y agoWith iOS you don't need to do this. You can enable zooming as a system-wide feature. You can even zoom parts of the screen, like a magnifying glass. You can find all of these settings under Settings -> Accessibility -> Zoom.
- saagarjha 7y agoYou can change the OS text size and apps will respond to it.
- rahuldottech 7y agoJust FYI in case you didn't know, both Firefox and Chrome on mobile allow you to force zoom even if there's a viewport restriction. Check accessibly settings.
- btown 7y agoIs there a way to change this in JS? I'd love to, say, make sure that the zoom doesn't automatically change because I have an input element that's slightly thinner than the viewport and Apple thinks this is what people want, but still let people pinch to zoom.
- themarkn 7y agoNot a JS solution but if memory serves, setting the font size of in an input to 16px or greater prevents the mobile auto-zoom. At least on iOS.
- chimi 7y agoI tried to order a house online last night and I got to the "enter your email address to get your free quote" and because I couldn't zoom out, I could not see the Submit button. OMG, I thought how much money is this company losing because their website intentionally disables a built in feature!?
- test1235 7y agoorder a _house_? I guess they won't know what business they're losing 'cos they won't know people are leaving the site because of that specific issue. If they're on the ball, their tracking might be good enough that they can see people leaving on that step and try to zoom in on that problem area. If they're really good, they might spot they get no sales from users with a certain resolution and try it out for themselves.
- brailsafe 7y agoI feel like this is a bit of a humblebrag, but you can order houses online?
- have_faith 7y agohouse salad?
- moeamaya 7y agoIt didn’t happen to be this site? https://www.dwellito.com/modular-homes/cover https://www.dwellito.com/modular-homes/cover (example home) Only asking because it’s a friend’s site and I helped him build the quote modal which you currently can’t zoom.
- magic_beans 7y agoWho buys a whole house on the internet...? Very odd.