3 ms·
A remark from a web developer on the implementation of this site: On my laptop, scrolling by touch, when I reach the image immediately above the colours sectio
by chrismorgan 6y ago
A remark from a web developer on the implementation of this site:
On my laptop, scrolling by touch, when I reach the image immediately above the colours section, I can’t easily go any further, because the carousel thingy that takes up most of the screen has schnaffled touch actions, and is only translating them into horizontal scrolling of that component, even if my finger is moving perfectly vertically. This is a bad implementation, because it’s reimplementing something the browser already offers, badly. This is a form of scrolljacking, which is always bad on content sites (I have encountered no exceptions; in apps, there are a very small list of justifiable cases, e.g. maps to turn it into zooming, though it still won’t work perfectly no matter what you do, because the web just doesn’t expose the right primitives). What it should do instead is to make the carousel thing just a normal scrollable container (though still visually hiding the scrollbar), and leave the whole scrolling thing to the browser, with the assistance of CSS snap points if available, or some gentle touchend and similar watching to simulate its effect if it’s not.
(Also, clicking on the names of the colours below the carousel is badly broken, doing nothing half the time, and taking you to the wrong slide half of the rest of the time, to say nothing of them having an overly small hit target—the whole row of “Blanc / matte finish; black
decals” should be the hit target.)
- scoopdewoop 6y agoFWIW, lots of web devs here. Thats why this is in the guidelines: Please don't complain about website formatting, back-button breakage, and similar annoyances. They're too common to be interesting. Exception: when the author is present. Then friendly feedback might be helpful.
- chrismorgan 6y agoThank you for pulling me up on that—I’ve certainly complained about things I find particularly annoying before, but I do try to make such complaints valuable by explaining the technical side of things (why the problem occurred, and why it matters) and a solution, which I know other developers find helpful sometimes. Done in moderation, I reckon that normally satisfies that guideline (because it’s not just a complaint, but turns it into a teaching opportunity). Also, judging by the poster’s username, the author is probably present.
- whyleyc 6y agoI'm not 100% convinced Greg LeMond is hanging out on HN, nor that he handcrafted this particular website. If he is and he did then he has made a spectacular midlife career pivot.
- chrismorgan 6y agoLooks like it’s his son, even if he’s just trying this out briefly, so there’s still likely to be a feedback loop.
- vaccinator 6y agoLooks like the author is present...