by FreakyT · 5y ago · 0 comments
What often causes this is some HTML element overflowing by one pixel, but no one saw it during the QA process because all the webdevs were using Macs, which have invisible scrollbars by default. I always enable visible scrollbars on my dev computers specifically so I can catch problems like this.
1. Hover over an element that enables the visibility of something else
2. Trigger an overflow and cause scrollbar to show up
3. Scrollbar shifts the original element
4. Original element is no longer being hovered so new element gets hidden
5. Scrollbar disappears and original element moves back
6. Repeat
[0] https://i.imgur.com/dS5acnx.gifv The gif doesn't have enough fps. IRL the animation is about 10x faster than that so there's no time to click the username.
Reported it but the support agent couldn't reproduce ¯\_(ツ)_/¯
Why the need for an extra device? There's a setting in the System Preferences > General > Show scroll bars: "Always".
Or it will automatically show scroll bars if you're using a mouse.
If you're a web developer and your target audience is not limited to only macOS and mobile, you should have the Show scroll bars set to Always. I'm using a mbp for most of my web dev career and I've always caught these bugs during development.
What I do agree is that Windows or Linux makes this setting a default, which makes it more obvious. While testing on different devices is always better, it's not necessary to catch these trivial problems.
We've gone through a long period of "Works on my Safari".
We've had this happen numerous times in the past. As a result, I had to make it mandatory that devs on my team and the QA team have scrollbars always on on their Macs. They get frustrated that I require it but it catches so many minor layout issues that it's worth it.
defeated dev noises
"Hate" is a strong work, but humble users like myself also dislike you (or rather, your choices).
Now I'm not sure if you blame the OS maker (Apple/Microsoft), the browser makers (Apple again, Google, Microsoft, Mozilla), or the web developers of the websites. But regardless of who accepts or deserves the blame, it is hard to dispute that the experience is far worse with scrollbars forced always on. It shouldn't be this way, but as of right now, it ruins the experience.
Like you mentioned, some websites simply don't work or don't work how they should. You end up with scrollbars on elements that aren't even form fields because of weird hacks that web developers are doing with overflow elements or strange CSS anomalies.
I'm not sure how you address this issue. But it is definitely more deeply seeded than the OS level, and I think web developers (a lot of us here) should take some of the responsibility for ruining scrollbars. It is our company's apps and sites that drove Apple to this decision.
I suspect that one of the reasons for hidden scrollbars by default is because the teams at Apple have tried to use the web with "always-on" scrollbars and didn't want their users experiencing the web that way. Remember also that defaults are important. Most people will never change the setting, even if it was obnoxious. Most Mac users are going to use the default setting, regardless of whether the default is always on, always off, or auto. Whatever the default is, that will be how most people use the computer and just accept it as "how it works". So Apple has to choose the best option (between three bad choices) that will best best for MOST people. Not everyone, but MOST.
I also think that MOST people are used to automatic scroll bars at this point. Again, my Mom is the person that will never change a setting. So she will always use whatever the default is. And she is used to automatic scrollbars. She knows that if she wants to see the scrollbars, she has to do a micro-flick of the scrollwheel (or her finger on mobile/touch) to reveal the scrollbar. It requires minimal-to-no effort and most people have grown accustomed to it now. Is it flawless? No. But I do think it is the best option MOST of the time.
You have scrollbars everywhere precisely because they're hidden from developers who don't even know about them, and it seems ~all developers use Macs for web dev those days.