News for hackers. Stuff that matters.
Re:New CSS Features in Firefox 68 by untog on Wednesday July 31, 2019 @05:29PM (#20578758)
Scroll snap is a useful feature. The way you can tell that it's useful is because a ton of sites are already doing it, but in a manual, hacky way with JavaScript. This works better and uses less code and CPU. A win all round.
Re:New CSS Features in Firefox 68 by aarmenaa on Wednesday July 31, 2019 @06:46PM (#20579393)
> Scroll snap is a useful feature. The way you can tell that it's useful is because a ton of sites are already doing it, but in a manual, hacky way with JavaScript. This works better and uses less code and CPU. A win all round.

Useful in the same way that popup windows are. Developers certainly liked those - they were such a useful tool to annoy users with! And now "real" popup windows are blocked and developers create them the hacky way with JavaScript. The circle of life.

Re:New CSS Features in Firefox 68 by untog on Wednesday July 31, 2019 @10:21PM (#20580646)
What a silly comparison. Are you suggesting users find swipeable photo galleries as irritating as popup windows? Because they really don't. If they did then the photos app in both major mobile OSes would be infuriating.
Re:New CSS Features in Firefox 68 by plorntus on Wednesday July 31, 2019 @08:01PM (#20579948)
That's a bit of an odd comparison to make. Scrollsnapping is a useful feature in many scenarios and as the previous comment mentioned the current way of doing it is hacky.

Popups are an entirely different thing but there are legitimate uses for these too. There was never any work around for popups, it's a simple one line of code, you just need to make sure its opened in a trusted event such as a real user click to ensure the user actually wanted the pop up to show.