Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> If I try to zoom, it is already a demonstration that your design does not work for me on my device

What? There's plenty of reasons to zoom even if the design is perfect.



Are you able to articulate 5 or more of those plentiful reasons?

The reasons I can think you would desire to zoom in on a legible, functional, accessible website would be for curiosity, or to see a detail closer and admire the layout. There are details like this in apps all the time and I screenshot it and zoom in on my screenshot. Those are interests (I want to see that closer) that are separate concerns from me using the app.

I'm curious what reasons you might give that would interrupt or prevent a person from using the site as intended because of their desire to zoom in without screenshotting.


  Are you able to articulate 5 
  or more of those plentiful reasons?
At times I have zoomed in or out because:

1. I'm further away from the screen, because my screen is large.

2. I'm further away from the screen, because I am showing a website to a friend or colleague.

3. I'm displaying the site on a projector, and people at the back of the room say they can't see.

4. I'm viewing a website on my colleague's high-dpi display, which she uses at native resolution.

5. I'm viewing a website on my phone while being driven somewhere, and the ride's a bit bumpy so I don't want the text too small.

6. I have a comparatively low-end phone, that most people don't seem to test for; sometimes the live suggestion dropdown for a text box is obscured by my on-screen keyboard.

7. I have a comparatively high-end phone, and I'm not moving around, and I'd like to have more of the article on my screen.

8. I have a comparatively high-end phone, with a high-dpi display, and the page I'm reading just seems to have rendered everything quite small.

9. The website designer has opted for a skinny font I'm having trouble reading.

10. The website designer has decided a feature is unimportant and should be visually unimportant (maybe a link to some terms and conditions, or an EULA or something like that) but I want to be the judge of that.

11. My eyes are tired.

12. My eyes are fine, but I've had a few drinks and things aren't quite as crisp as they usually are.

TLDR: if a user in a test group says "I'm having trouble reading that text" would you say "No you're not"? Of course you wouldn't, it would be ridiculous to do that, the user has first-hand perfectly accurate information you don't have access to. And yet, when a user expresses that they're having trouble reading the text by zooming, and you disable zooming, that's exactly what you're doing.


I feel like a lot of these complaints are endemic to defining things in CSS using 'px' as units instead of more sensible (and repsonsive) modern techniques like defining type in 'pt' and widths in more complex units (percents, or mixed units).

It's possible to avoid a lot of these pitfalls with better design.

1. User far from big screen: You can zoom much faster and easier with your forearm than a pinch gesture

2. User far from screen, unusual viewing angle: how much time to you spend browsing at awkward angles versus dead-on? This seems like a small consideration that would affect some types of sites more than others. I doubt a banking website would feel the same way about this as a social media website project for example…

3. Classroom projection is decidedly not the use-case nearly any mobile website is designed to work under, unless the website is cloud-based projection software, but that's a specialty thing in itself.

4. This is why we define font sizes in PT and no PX, this isn't a mobile or responsive issue, but rather a design choice in CSS

5. Does your mobile browser include a 'reader' mode that isolates text content and provides the ability to make it more legible in these conditions?

6. Ah yes, and what's even more surprising for people is how differently Mobile Safari calculates screen dimensions between iPhone and iPad! Then the difference between how iOS and Android handle keyboards, and then the difference at how those OS's handle browser verus web-app mode. There is currently no good solution to keyboard control.

Anecdotally, we ran into an issue on Friday where an email field was autofocused and the keyboard was popping up and obscuring what you were entering. I didn't make it that way, but I did provide the solution: remove autofocus for touchscreen users: http://staticresource.com/autofocuser.html This is a way that we can have one feature for desktop users where it speeds up entry, but target mobile users separately and provide a better targeted experience for them.

    <script>
      // Block autofocus for touchscreen users
      onload = function(){
        if(('ontouchstart' in window)||(navigator.msMaxTouchPoints>0)){
          var field = document.querySelectorAll('[autofocus]');
          for(var i=0;i<field.length;i++) {
            field[i].blur();
          }
        }
      }
    </script>
7. I hear you there, I've felt the same way when reading long texts. Any easy workaround would be to allow the user to adjust the font size of the article text on the site within reasonable limits!

8. That's usually a problem with the difference between 'pixels' on your screen and CSS 'px' units. Defining layout in other units in CSS can avoid this problem on HiDPI displays.

9. Testing, testing, testing. I make sure to supply well-made fonts, I use a special set of CSS rules that control the rendering of text display so that the same font renders the same thickness in all browser's and OSes, and with those differences out of the way I can move forward using only weights that work (usually no lower than 400 weight unless the size being displayed is very large) and be sure that they are legible everywhere. Here's my snippet (and honestly, this cuts out SO many other common text rendering bugs):

    *,
    *:before,
    *:after {
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      font-kerning: auto;
    }
10. My job is to make sure that the experience of the desktop site, with all of its abilities, functionality, and information, are displayed in an equally recognizable, usable way on mobile. I don't cut features, I don't ever assume a mobile user or desktop user won't want anything. My job is to make it just as great everywhere.

11. Turn your brightness down, you only have one set of eyeballs.

12. I'm not sure panning and zooming will help you feel better when the room is spinning so fast you can't read.

I'm not dismissing these reasons, I believe many of them are small or fleeting and to change an entire project for one of these whims seems short-sighted. Other reasons listed here are 100% valid, and workaround can be found without enabling zooming.

For projects where zooming makes sense I wouldn't have it any other way, but I don't see a compelling case listed here to always have zoom enabled.


> I feel like a lot of these complaints are endemic to defining things in CSS using 'px' as units instead of more sensible (and repsonsive) modern techniques like defining type in 'pt' and widths in more complex units (percents, or mixed units).

What? Isn't px a fixed multiple of pt, with an actual size that varies by platform?


> What? Isn't px a fixed multiple of pt

CSS 3 defines pixels that way (1/96 inch, pt is 1/72 inch), but the previous definition was rather different, and had no fixed relation to either inches or ems.

But I thought the change in CSS 3 was because pretty much every actual implementation of CSS 2.1 had taken the definition, chucked it out the window, and used 1/96 inch anyway. So, I don't see how any problems could arise in practice from using px instead of pt.


If the site can render responsively, is there a reason it can't be zoomed?

Both the reasons looking for zoom, and your reasons for not providing it seem reasonable. Is there some technical barrier for not enabling zoom?

Zoom is a first-class gesture on mobile, it is the second one after scrolling that you always expect to be there. On a desktop, you generally have more desktop than you need for a window, so it is possible to resize the window to adjust the size of the viewport. Responsive sites work nicely in the case. On mobile, there is no "window" and the device's dimensions themselves are the viewport. You can reorient the device to enable changing the width, but without zoom, you are taking away any ability to change the viewport.

Maybe zoom isn't a critical feature, but it is part of how the devices work. As a result, it is an expected interaction for those on mobile. Have you ever used a piece of desktop software where you couldn't resize the window - it drives you crazy. Ignoring expected behavior is contrary to good usability.


> Is there some technical barrier for not enabling zoom?

“Safari on iOS displays webpages at a scale that works for most web content originally designed for the desktop. If these default settings don’t work for your webpages, it is highly recommended that you change the settings by configuring the viewport. You especially need to configure the viewport if you are designing webpages specifically for iOS.”

https://developer.apple.com/library/mac/documentation/AppleA...

Zooming is enabled by default on Mobile Safari as a feature to help mobile users navigate sites not designed for mobile.

Apple intentionally added many different ways to control the viewport, including the ability to disable zoom.

“Setting the viewport width should be the first task when designing web applications for iOS to avoid the user zooming in before using your application.”

So it very much sounds like Apple has added this functionality as a usability feature to help mobile users navigate sites designed without regard to their specific hardware, Apply strongly recommends setting the viewport specifically for the pages you design with iOS in mind. Also note, when looking through Apple's documentation that they refer to the gesture as 'zooming' and the feature in Mobile Safari as 'user scaling.


OK, so you're suggesting that we not enable a "usability feature" because Apple's guidelines suggest that there are alternative ways to specify the correct viewport?

I get the design angle, and I don't disagree that setting the correct viewport is a good idea, but you shouldn't assume that good design and correctly setting the viewport will work for everybody. The fact remains that the zoom gesture is critical on mobile, and disabling it does not help anybody use your site.

On responsive sites, the idea behind them is that the site does its best guess of being responsive based on the size of the viewport. However, sometimes it doesn't work out, sometimes the websites behavior isn't as intended, sometimes the designer didn't test with my exact device, size, eyesight, etc. It is nice in those cases that I can make up for the site not being designed for my mobile by using the zoom feature as intended.


> K, so you're suggesting that we not enable a "usability feature" because Apple's guidelines suggest that there are alternative ways to specify the correct viewport?

No that's the opposite of what I'm saying. Apple has created a usability feature called 'User Scaling' and enabled it by default for usability purposes. Apple also added the <meta> tags that control the viewport, including disabling User Scaling, and strongly urges designers & developers to do two things:

1) Design your site with iOS users and hardware in mind

2) Use the correct viewport tag that gives the best experience

> On responsive sites, the idea behind them is that the site does its best guess of being responsive based on the size of the viewport.

I'm not sure what you're trying to say here. There's not much guessing going on here, you are either able to define the viewport, or it will render the page at the widths specified in the page styles. If you have defined the viewport there is no guessing involved and it will render the same way from device to device.

> sometimes the websites behavior isn't as intended, sometimes the designer didn't test with my exact device, size, eyesight, etc.

Chances are I didn't test with your exact device, but when I style things I have a set of rules and tools that help ensure that the same content renders the same way anywhere. If I tested only against released hardware then my sites wouldn't be future-proof. I design my stuff to work on all screen sizes smaller and larger than would be in use today so it not only shows up the same everywhere, but will continue to show up the same on devices released years from today.

I also regularly test on quirky hardware like PS Vita, and anything else with a browser that I can get my hands on just to make sure there aren't any weird bugs or edge cases.

http://www.quirksmode.org/blog/archives/2010/04/a_pixel_is_n...

Here's a real-world case study: a friend had a sign up funnel and was tracking 900 different mobile devices on his site. On my main gig we have 1,300+ different devices a month! I put my responsive and mobile polish on top of his existing site and we moved the needle on signups 2% since then, and that change has lasted. Clearly, whatever I'm doing it making it easier for mobile users to get in the door with their dollars, and I have the numbers to vouch for that!


> Clearly, whatever I'm doing it making it easier for mobile users to get in the door with their dollars, and I have the numbers to vouch for that!

The flaw in this argument is that you are measuring across the total population, and totally ignoring that while your overall changes may help some proportion, some parts of it may actively prevent others from using the site at all.

Great for you if all you care about is the money. Not so great if you want to e.g. ensure people with disabilities have a good experience too.


Screenshotting is something that almost nobody knows how to do. And even if everybody did know how to screenshot, it's so much slower and inefficient that it's a completely unacceptable replacement for the natural, and designed zoom interface.


> Screenshotting is something that almost nobody knows how to do

I got a really good laugh at this one, a cursory glance of user-generated content online shows tons of people not only know how to screenshot their devices, but are quite adept at figuring out how to share those screenshots with each other and the world.


The people that are taking those screenshots to generate that content make up a tiny minority of users. Most people don't know how to screenshot, and the basic point that you shouldn't have to take a screenshot to zoom into a page is still a good one.


You shouldn't have to zoom in to a page, how do you use apps?


The world is a big place, even if tons of people can screenshot, that does not mean that many people know how.

If your audience is just those that can screenshot, and you are willing to block out others, go ahead. But don't call yourself a designer anymore.


Looking at social media, it seems like lots more people know how to screenshot than directly download an image, leading to screenshots of images being shared. Strange phenomenon.


1. desirability to look at content more closely

2. see above

3. see above

4. see above

5. see above


For me:

1. I'm old enough to need reading glasses. 2. etc.


If you have poor eyesight, are you aware that you have the option of increasing the font-size device-wide in your device settings?


Why should my mother have to change device-wide settings on my device just because she wants to read something using it?

(Yes, people do lend their devices.)


User-scaling of the viewport is thankfully not the only way of enlarging text inside of a web page. It's possible to design a site that allows the user to change the font-size of relevant UI controls without rendering the layout wider than the device screen (causing the user to have to pan around to read it).

If you're not providing a better experience than a fully working desktop site, then you shouldn't attempt responsive design at all and let mobile users use a non-targeted but working site. I only shut of user-scaling on sites where the targeted mobile experience is better than a scaled fully-working desktop layout.


I think you misunderstand me.

If you e.g. can't read it because the text is too small, the design is not perfect (for that user at that time), and zoom should not be disabled.

My point was that the moment a user is trying to zoom, for whatever reason, they have already decided that the design is not perfect for them in the present circumstances on the device they're currently using.

And so the only thing disabling zoom is going to achieve is annoying the user by artificially preventing them from trying to improve a situation they've already deemed is suboptimal.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: