frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Scroll snapping, state queries, monster hunter, and gamification

https://utilitybend.com/blog/the-customizable-select-part-four-scroll-snapping-state-queries-monster-hunter-and-gamification
17•tobr•3d ago

Comments

cmiller1•4h ago
Seems to only work in Chrome, I stared at the "end result" in both Firefox and Safari wondering what the heck was so special about a regular old dropdown menu.
webstrand•2h ago
Yeah, this is using a new feature[1] only available in Chrome so far. Mozilla is positive[2] about the specification, so we should see it in Firefox eventually, pending an implementation.

[1]: https://developer.chrome.com/blog/a-customizable-select

[2]: https://github.com/whatwg/html/pull/10548

Bengalilol•2h ago
Doesn't work in Safari and Firefox. The end result = the initial result.

And I would get rid of the mouse events in favor of pointer events.

jakelazaroff•27m ago
But crucially, it does work - it just looks like a normal select, rather than a fancy scroller.
oneeyedpigeon•1h ago
The delay between reaching the end of the list and the button greying out is a bit awkward, imo. I think the button should disable instantly, when the end of the list is reached.
tobr•1h ago
This is part 4 in a series. Part 1 makes it more clear that this is a very new feature with limited availability.

https://utilitybend.com/blog/the-customizable-select-part-on...

yourpants•1h ago
`<selectedcontent>`? Aren't you supposed to use a hyphen in the names of custom elements?
Cyykratahk•1h ago
It's great to see more progress around scroll snapping - I'll have to check out this scroll-state container query and the new events.

The biggest missing scroll-snap feature I see is the ability to tell a scrolling container to "snap to the next position in this direction", and maybe by extension "which element(s) are currently snapped". In this article clicking an arrow moves the scroll position by a fixed 40px, but it would be very nice to have a proper API that accounts for element sizes, snap alignments, out-of-axis children, etc.

I ended up writing a package a few years ago that does this (scroll-snap-api). It feels so dirty to calculate the styles on every child in the tree just to find scroll snap positions.

Backyard Coffee and Jazz in Kyoto, Japan

https://thedeletedscenes.substack.com/p/backyard-coffee-and-jazz-in-kyoto
25•wyclif•33m ago•9 comments

Don't trust Cloudflare with your personal data

https://shkspr.mobi/blog/2020/09/dont-trust-cloudflare-with-your-personal-data/
3•udev4096•9m ago•0 comments

New Linux udisks flaw lets attackers get root on major Linux distros

https://www.bleepingcomputer.com/news/linux/new-linux-udisks-flaw-lets-attackers-get-root-on-major-linux-distros/
252•smig0•3d ago•154 comments

Rocknix is an immutable Linux distribution for handheld gaming devices

https://rocknix.org/
30•PaulHoule•3d ago•7 comments

Mechanical Watch: Exploded View

https://fellerts.no/projects/epoch.html
1058•fellerts•1d ago•117 comments

Cataphract: Medieval-fantasy roleplaying wargame, in the Black-Sea C. 1300

https://samsorensen.blot.im/cataphracts-design-diary-1
88•vidro3•3d ago•13 comments

RaptorCast: Designing a Messaging Layer

https://www.category.xyz/blogs/raptorcast-designing-a-messaging-layer
13•wwolffrec•8h ago•2 comments

How to store Go pointers from assembly

https://mazzo.li/posts/go-asm-pointers.html
16•pdziepak•2h ago•0 comments

Tell me about your favorite tree (a slow-web proposal)

https://nannnsss.omg.lol/2025/tell-me-about-your-favorite-tree/
53•surprisetalk•3d ago•18 comments

I wrote my PhD Thesis in Typst

https://fransskarman.com/phd_thesis_in_typst.html
460•todsacerdoti•17h ago•269 comments

2B people don't have safe drinking water: what does this mean for them?

https://ourworldindata.org/what-no-safe-water-means
43•surprisetalk•58m ago•14 comments

Python can run Mojo now

https://koaning.io/posts/giving-mojo-a-spin/
245•cantdutchthis•2d ago•120 comments

Gov. Greg Abbott vetoes THC ban

https://www.texastribune.org/2025/06/22/texas-thc-ban-bill-greg-abbott-veto-senate-bill-3/
33•DocFeind•1h ago•14 comments

Homotopy Equivalences

https://bartoszmilewski.com/2025/06/20/weak-homotopy-equivalences/
35•ibobev•3d ago•5 comments

Klein Bottle Amazon Brand Hijacking (2021)

https://www.kleinbottle.com/Amazon_Brand_Hijacking.html
333•sebg•19h ago•145 comments

Using Home Assistant, adguard home and an $8 smart outlet to avoid brain rot

https://www.romanklasen.com/blog/beating-brainrot-by-button/
296•remuskaos•18h ago•153 comments

Scroll snapping, state queries, monster hunter, and gamification

https://utilitybend.com/blog/the-customizable-select-part-four-scroll-snapping-state-queries-monster-hunter-and-gamification
17•tobr•3d ago•8 comments

Nano-Vllm: lightweight vLLM implementation built from scratch

https://github.com/GeeeekExplorer/nano-vllm
57•simonpure•10h ago•10 comments

Finding a billion factorials in 60 ms with SIMD

https://codeforces.com/blog/entry/143279
145•todsacerdoti•15h ago•10 comments

Show HN: Lego Island Playable in the Browser

https://isle.pizza
167•foxtacles•16h ago•42 comments

Radio Garden

https://radio.garden/?2025
152•LeoPanthera•17h ago•35 comments

The X Window System didn't immediately have X terminals

https://utcc.utoronto.ca/~cks/space/blog/unix/XTerminalsNotImmediate
77•zdw•11h ago•36 comments

Optifye.ai (YC W25) is hiring a back end engineer

1•Vivaan_Baid•14h ago

Polystate: Composable Finite State Machines

https://github.com/sdzx-1/polystate
78•goless•13h ago•32 comments

Claude Code for VSCode

https://marketplace.visualstudio.com/items?itemName=anthropic.claude-code
155•tosh•7h ago•95 comments

Show HN: Turbine – 16-bit CPU Architecture and Emulator built in C

https://www.errorcodezero.dev/blog/building-my-own-cpu-isa-and-virtual-machine/
27•errorcodezero•3d ago•9 comments

Using Wave Function Collapse to solve puzzle map generation at scale

https://sublevelgames.github.io/blogs/2025-06-22-nurikabe-map-gen-with-wfc/
71•greentec•14h ago•21 comments

Show HN: EchoStream – A Local AI Agent That Lives on Your iPhone

15•shuhongwu•4d ago•11 comments

Verlet Integration and Cloth Physics Simulation (2022)

https://pikuma.com/blog/verlet-integration-2d-cloth-physics-simulation
25•atan2•2d ago•10 comments

Germany and Italy pressed to bring $245B of gold home from US

https://www.ft.com/content/e39390cc-ea02-4197-843a-1e4c242422cc
166•cempaka•3h ago•228 comments