9 ms·
Scrolling your website past the iPhone X’s notch
- nsxwolf 9y agoWhy not? This device is going to be in millions of people's hands soon. Use your fancy "responsive design" to improve the full screen scrolling experience.
- zitterbewegung 9y agoThis is a design joke. The iPhone X will by default enclose websites in a block that won't touch the notch.
- santoriv 9y agoThank God. For a few seconds I thought this was a real thing that we were going to have to deal with. I was starting to have IE6 flashbacks.
- new299 9y agoPerhaps you're already aware but you can absolutely render around the notch on the iPhone X: https://webkit.org/blog/7929/designing-websites-for-iphone-x/ https://webkit.org/blog/7929/designing-websites-for-iphone-x... Hopefully it wont cause too many other issues though.
- baybal2 9y agoIt looks like the new js viewport height != 100vh issue again
- deleted 9y ago[deleted]
- Isamu 9y agoWhat is shocking to me is that they are discussing mobile website UX in landscape orientation. So many websites are hostile to or broken in landscape orientation I have come to believe that nobody must use it (other than me.) E.g. the menu bars ("dickbars") that obscure 50% of the screen in landscape (some of them actually grow bigger in landscape.) E.g. any kind of pop-up that can't be dismissed in landscape. The most hostile is probably the full-screen "rotate your phone" pop-ups, for a regular website.
- metaobject 9y agoI exclusively use landscape mode due to vision problems. In landscape mode, I can zoom the text a little more and still read the text semi-comfortably without having to horizontally scroll as much as I would in vertical mode. I know exactly what you mean re: the bars and borders which obscure text, etc in landscape mode. If it gets too bad, I just leave the page.
- robocat 9y agoUse this bookmarklet with Chrome to hide obscuring position:fixed bars: https://news.ycombinator.com/item?id=15292039 https://news.ycombinator.com/item?id=15292039
- thinkling 9y ago^ This, the KillSticky bookmarklet which kills those static framing elements. I use it all the time, even on the desktop, where those elements break PageDown scrolling.
- abrowne 9y agoI do this too, but Firefox will ignore a full-width fix bar when doing space bar/page down scrolling, so it's less necessary. I wish Chromium would pick that up.
- iokanuon 9y agoIf you're using Chrome on Android, turn up "Text Scaling" and enable "Force Zoom" in the Accessibility section in Chrome settings. I can zoom to my heart's content now, and everything is readable from a distance.
- jrimbault 9y agoSide note about this website font-size: I'm sitting in front a desktop 23" monitor at arms length, I have to zoom to 175% to get a decent font-size. I have a perfect eye sight. Edit: By decent I mean somewhere around 18px, so here between 150% and 175%. I could read at 125%, but while I am it, why not get rid off all the whitespace on the right by zooming and getting even more comfortable. By perfect eyesight I do mean perfect eyesight in all possible measurements, except reaction speed maybe.
- programbreeding 9y agoSame size screen (possibly lower resolution, I'm only on 1680x1050) and while I don't have to zoom in to read it, the font is definitely on the small side.
- YSFEJ4SWJUVU6 9y agoOn the small side perhaps, but 175 % would be at the other extreme (unless there's something that causes OP to have even smaller fonts than I have with a monitor with similar pixel pitch). IMO 125 % at the very most should be enough to not get called a not decent sized typeface.
- finnh 9y agoI'm not saying this to be a jerk, but because I honestly wonder if this is the explanation. Could you be farsighted? When people say "perfect eye sight" they (typically) mean 20/20 or better, but that's for distance vision. So if you can see things in the distance way better than your friends, that doesn't (necessarily) mean that your up-close vision is great. (I'm on a 27" 5K monitor, so a good bit larger but not absurdly so, also at arms' length, and while I agree that the font is on the small side it is (to me) crazy huge at 175%).
- isatty 9y agoWait are you saying that an optometrist certified 20/20 is not perfect vision? I'm curious because I don't have perfect vision (I'm at -0.5 on both eyes) but I can read most things just fine (just not far away stuff). I find that websites regularly have small font sizes. I use a 2K UHD monitors (U2515H x2) at an arms length and I zoom both HN and reddit to read them with ease.
- Animats 9y agoIf your site is being viewed on an iPhone X, put up a box "This site is best viewed on a rectangular screen". Problem solved.
- flatline 9y agoBut then how do you properly format this proposed box?
- new299 9y agoYou could just render it to the region next to the notch and then it will only appear on phones with a notch. /badjoke
- rconti 9y agoBrilliant, deal with something you subjectively think is broken by making the user experience even worse. I echo the thoughts of others here who simply never use landscape mode.
- 51Cards 9y agoI do believe they were joking.
- deleted 9y ago[deleted]
- nsxwolf 9y agoSide question, what's the most accurate way to describe the screen resolution of a screen with a piece cut out? 2436-by-1125-minus something?
- tqkxzugoaupvwqr 9y agoIf it is close to a rectangle I’d say the length of the edges of the bounding box, and a description of the shape if that is important, e.g. “2436x1125, rounded corners, inset at top”.
- pweissbrod 9y agoWhat we really need is an iphone x emulator web browser mode. Basically a rounded chunk taken out of the left side of my monitor so i can preview what my work will look like. An optional virtual thumb moving about the screen would enhance the simulation provided we can adjust the skin tone/gender.
- untog 9y ago> What we really need is an iphone x emulator web browser mode. The iOS simulator is basically this. It's included with XCode.
- pweissbrod 9y agosomeone told me visual studio gives you the virtual thumb option. unfortunately it is hard-coded to a unisex/caucasian thumb in the latest version.
- egypturnash 9y agoThis is something web developers probably never think about - but a lady who keeps her nails moderately long is going to obscure an extra square half inch or so of screen when she taps the phone! Thinking about this also reminds me of the time I found a game controller I physically could not use, because the face buttons were nestled into a little recess. I could only press them about 10% of the way down before my thumbnail clicked against the housing.
- Rumudiez 9y agoIf you play the cello, violin, or even piano you'll find everyone and their mother telling you the same thing: cut your nails! Being able to arch your fingers naturally is an ergonomic advantage and will probably help with your typing, too.
- taternuts 9y agoI imagine for most women with long nails, it's an active tradeoff for aesthetics
- dunham 9y agoI don't know what Apple actually does, but I'd suggest, for apps that don't explicitly handle the "notch" (including the web browser), they should just square up the edge in landscape mode and leave the bits around the notch black.
- pwinnski 9y agoThat's the default. This is essentially a joke. Well, not black, but whatever background color is defined.
- kharms 9y agoThis site is entirely unreadable on an iPhone 6s. Not exactly a credible source. The problem seems to be the code blocks.
- thephyber 9y ago> Not exactly a credible source. QuirksMode.org was the best source on the web for most browser DOM events for a decade. It might still be. Whether they are credible about iPhone X issues, that is TBD.
- coev 9y ago> Not exactly a credible source. Peter-Paul Koch is probably the most authoritative source regarding browser quirks outside of browser developers. Don't let a dated website design color your view of the content.
- kharms 9y agoGood to know! :)
- alkonaut 9y agoThere has to be a global option in iOS to just crop the screen to rectangular? If not, why?
- pwinnski 9y agoThat's the default. This is essentially a joke.
- gbbr 9y agoYou call this script simple? Seems more like a hacky work around a bad design decision
- wruza 9y agoYou must be new to the web development.
- hellofunk 9y agoHere's the right comment: https://news.ycombinator.com/item?id=15401329 https://news.ycombinator.com/item?id=15401329
- fictionfuture 9y agoWith the notch, I'm sure Apple will quickly iterate to make it a positive UX feature not a negative one. Apple has some of the best design talent in the world, so I'm sure they considered several tradeoffs in the design.
- baybal2 9y agoAll api, and in house extensions they give to web devs basically do following: break websites in all browsers, to make it work in Safari
- rawTruthHurts 9y agoIf I ever overestimated the power of negation, I was in the wrong.
- csours 9y agoObviously that is stupid looking, but what if you just had an arc that simulated rotary-like scrolling. https://imgur.com/a/myebr https://imgur.com/a/myebr
- deleted 9y ago[deleted]
- drak0n1c 9y agoCheck these implementations out: https://twitter.com/vojtastavik/status/907911237983449088 https://twitter.com/vojtastavik/status/907911237983449088 https://github.com/ZevEisenberg/ScrollSnake https://github.com/ZevEisenberg/ScrollSnake
- mi100hael 9y agoThat's literally the gif from this article...
- deleted 9y ago[deleted]
- provemewrong 9y agoSomewhat similar to this https://giphy.com/gifs/iphonex-26n79WqJAIUBjiaEE https://giphy.com/gifs/iphonex-26n79WqJAIUBjiaEE (intentionally stupid looking, coming from /r/ProgrammerHumor).
- newscracker 9y agoThough this is an experimental piece, the UI looks really terrible to me. The entire status bar area in portrait mode (of which this new notch is a part) should just be treated as “not part of the screen/viewport” at all times. For any scrollable content, this area should be completely avoided in both portrait and landscape orientations.
- dingo_bat 9y agoReally stupid design from Apple. I hope this trend does not catch on. Extreme form-over-function looks like this.