javascript - Can I use feature detection to know if css hover works for this client? -


I have a website that provides labels when a user enters the image, you can see the example on this: < / P>

For the touchscreen, I want to see those signals by default (since hover is not usually available). I do not like Browser-Sniff and I try to keep that list as new devices / versions.

Any reliable way to find out whether a browser can rotate or a touchscreen user detect via JavaScript or CSS?

no

Even if they have a touchscreen, they may be using the mouse anyway. For that matter, whether they have a touchscreen or not, they are using a keyboard (or a breath switch or something) to navigate and are still unable to hover.

It is not important that the information behind the hover appears in the first place (or at least to provide other ways to access it)

< / Html>

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -