Can I ascertain if something is a touch device

The capabilities service has some properties which might help. e.g:

Although worth noting: this logic is what caused us headaches recently. I imagine we’ll replace it with the css-media-query-based strategy in the not too distant future. (when this was written, I don’t think those media queries were widely available)

6 Likes