In order to reduce false positives from devices with a proper pointer device (ie. a mouse) that also have touch support, I've replaced the maxTouchPoints check with a check if the client doesn't match the media query (pointer: fine). As far as I can tell, and from testing, this should filter out platforms without a mouse as their primary pointer device, without catching devices with a mouse and keyboard that also have touch support.
In order to reduce false positives from devices with a proper pointer device (ie. a mouse) that also have touch support, I've replaced the maxTouchPoints check with a check if the client doesn't match the media query
(pointer: fine)
. As far as I can tell, and from testing, this should filter out platforms without a mouse as their primary pointer device, without catching devices with a mouse and keyboard that also have touch support.