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.
This method detects mobile phones, tables etc. as touchscreen devices, deactivating the cursor
It will detect stylus based devices as touchscreen device, deactivating the cursor
It will detect obscurer devices like TV's or game consoles as pointer devices, not deactivating the cursor
It will detect Laptops / PC's as pointer devices, not deactivating the cursor
It is unknown (to me) how a touch-device with an attached mouse will be handled.
Maybe worth testing a touch-device with a mouse attached, but I don't have any at hand.
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.