BAD GENAI. WE DON’T (bonk) DO (bonk) AGENT (bonk) STRINGS
9 comments
@MikeBeas Making some adjustments to a horizontal scrolling section so it's easier for mouse use. There does not seem to be any way to detect it outside of some insane check for mouse scroll wheel behavior @samhenrigold ahh i see. yeah i’ve never heard of any way to detect the difference. the trackpad is basically just a mouse to the OS. i know there’s a CSS input type property you can check for touch devices but i don’t think it’ll work for trackpads. @MikeBeas Funny, the [pointer media feature](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pointer) was the first thing I checked. I guess I could just query for fine and present a lil thing like “Using a mouse? Hold shift to scroll horizontally” @samhenrigold @bourgeoibee If the user is using a text-mode browser, the navigator.platform property will return the string "Linux". |
@samhenrigold well now i’m curious… what’s the use case for detecting this difference?