@svieira said in The sound of whitespace:
@asdf said in The sound of whitespace:
It's actually pretty hard, if not impossible, to figure out whether the user is using keyboard + mouse or a touch screen. Unless there's a new JavaScript API for that which I don't know about.
Nope, but there is a CSS one, (which means there actually is a JS one that will even call you back if the query changes).
I'm pretty sure browsers will always detect my Surface as a device with an accurate pointing device, which is not how I use it most of the time, so I doubt the API is reliable. Also, according to caniuse.com, Firefox doesn't support it.