0 works

Touch detection


dashboard+ Project

Posted by @360designer #css

Code snippet:

/* if the primary input mechanism system of the device CANNOT hover */
@media (hover: none) { }

/* if the primary input mechanism system of the device can hover */
@media (hover: hover) { }
content_copyCopy to Clipboard

Code snippet source:

https://medium.com/@ferie/detect-a-touch-device-with-only-css-9f8e30fa1134

>> Browse more code snippets

more_vert