I read this about interaction media which is explain how css can detect if pointer is touchscreen or not. It's using @media
query like
@media (pointer: coarse){
body{
// do something
}
}
but I just wonder how to implementing it using javascript ot JQuery, is it possible?
Thank you, and sorry for my English
is_fine = matchMedia('(pointer:fine)').matches
is_coarse = matchMedia('(pointer:coarse)').matches
Works in Chrome for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With