Quantcast
Channel: Javascript detecting wether or not user has a mouse - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by syntagma for Javascript detecting wether or not user has a mouse

You can use CSS media queries for that. To detect a mouse, your query would look like that: @media (hover: hover) and (pointer: fine) { // 'hover' means a device that supports hovering // 'pointer:...

View Article



Javascript detecting wether or not user has a mouse

This is not for design, I'm making a tutorial where I would either ask the user to tap or to click on things. Right now I'm using: ("ontouchstart" in document.documentElement); But this fails on...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images