News for hackers. Stuff that matters.
Re:A Personal API by xwowsersx on Monday December 02, 2019 @01:24PM (#21685158)
I can't read this because I'm having trouble scrolling to the right. Just me? What's with the annoying horizontal scrolling?
Re:A Personal API by danShumway on Monday December 02, 2019 @02:09PM (#21685683)
The majority of this scrolling implementation is pure CSS. It's reasonably elegant code, even if I'm not sure that the effect is worth pursuing. I think I like this page more as an engineer than I do as a user.

If you disable Javascript, it's a lot more consistent because the Javascript is only there to swap vertical scrolling for horizontal. Without JS it's still horizontal scrolling, but you scroll left/right the same way you would expect to, and for the most part the page just handles it -- it'll even resize correctly as you change the browser height.

The quick, dismissive comment I could give is that I don't think I like this as a user, so the author should just give the entire thing up. But it's kind of interesting, and I can see why someone might want to pursue a strange effect like this, and there might be ways to make it more tolerable. I think overriding vertical scroll controls was a mistake; maybe it's better to lean into the fact that it's horizontal, use pure CSS for the core, and only use Javascript to make horizontal scroll speed a bit faster or add shortcuts or something. Let the browser handle scrolling horizontally.

Cool or not, the effect seems to distract from the content though. Since the CSS is fairly nice and clean, something simple like a button that toggled between horizontal/vertical modes would not require overriding many rules, and would head off a lot of these kinds of comments.

Re:A Personal API by NetOpWibby on Monday December 02, 2019 @03:34PM (#21686578)
I was honestly not expecting any comments regarding scrolling but as you've suggested, I think adding a toggle would be beneficial.
Re:A Personal API by danShumway on Monday December 02, 2019 @04:26PM (#21687137)
I want to stress, regardless of my lukewarm feelings towards the UX, the engineering side of how this page is implemented is great.

It's using a few overlooked properties like CSS columns that get around needing to use JS to dynamically calculate height, and it's using Flexbox to get rid of any weird padding issues. I haven't tested, but I assume this will work in pretty much any modern browser (and even a few older ones like IE11) and degrades wonderfully when Javascript is disabled. It's screenreader accessible, it doesn't require messing with the HTML layout. It's some really pretty CSS.

Re:A Personal API by NetOpWibby on Monday December 02, 2019 @04:29PM (#21687164)
:D Thanks Dan!
Re:A Personal API by DHowett on Monday December 02, 2019 @01:26PM (#21685185)
When it does scroll (which you must do using vertical scroll instead of horizontal, apparently) it's slower than standard vertical scrolling and it repeatedly jumps back and forth before you hit the rightmost edge of the page. It doesn't even respond to standard pagination keys.
Re:A Personal API by eightysixfour on Monday December 02, 2019 @01:26PM (#21685186)
You have to scroll down to scroll right. What an awful design.
Re:A Personal API by JMTQp8lwXL on Monday December 02, 2019 @02:28PM (#21685892)
I didn't try scrolling vertically until I saw the other comments posted here. I would presume whomever implemented the scrolling didn't personally own a mouse or touchpad that has horizontal scrolling functionality.
Re:A Personal API by keb_ on Monday December 02, 2019 @01:26PM (#21685184)
Having the same issue. I've always understood horizontal scrolling to be a big web design no-no. On this page, it's especially awful because it scrolls painfully slowly for me, using latest version of Firefox.
Re:A Personal API by JeffRosenberg on Monday December 02, 2019 @01:28PM (#21685193)
Scrolling down has been overridden to scroll to the right instead. So just scroll up and down to read. ¯\_(ツ)_/¯
Re:A Personal API by xwowsersx on Monday December 02, 2019 @01:29PM (#21685220)
Haha finally figured that out by accident. Weird.