Email or username:

Password:

Forgot your password?
Top-level
sam henri gold

@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

2 comments
Mike Beasley

@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.

sam henri gold

@MikeBeas Funny, the [pointer media feature](developer.mozilla.org/en-US/do) 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”

Go Up