I\'m developing a webapp (not a website with pages of interesting text) with a very different interface for touch (your finger hides the screen when you click) and mouse (re
I had read and tried everything suggested, without sufficient results.
Then I investigated some more, and found this code - device.js
I'm using this in my client's website, to detect mouse existence:
( should have
desktop
class) and it seems pretty good, and for touch
support, i just do the regular check 'ontouchend' in document
and use information from both detections to assume a specific thing I need.