StrandedKitty / streets-gl

🗺 OpenStreetMap 3D renderer powered by WebGL2
http://streets.gl
MIT License
598 stars 43 forks source link

Alter touch device check #167

Closed Buldev closed 9 months ago

Buldev commented 9 months ago

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.

StrandedKitty commented 9 months ago

Thanks a lot!

HolgerJeromin commented 9 months ago

Adding link to save some click:

https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pointer