stephenscaff / react-animated-cursor

An animated custom cursor React component.
ISC License
309 stars 30 forks source link

Detect touchscreen devices more accurately #65

Closed nico-k3 closed 10 months ago

nico-k3 commented 11 months ago

The UA sniffing method is outdated and only works on known devices. The hover:none media query has a 97%+ global availability and is pretty accurate in detecting devices where the primary input is touch.

Maybe worth testing a touch-device with a mouse attached, but I don't have any at hand.

nico-k3 commented 11 months ago

closes #65