stephenscaff / react-animated-cursor

An animated custom cursor React component.
ISC License
273 stars 28 forks source link

Detect touchscreen devices more accurately #65

Closed nico-k3 closed 3 months ago

nico-k3 commented 5 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 5 months ago

closes #65