fix(web): better touch device detection (#17144)
* fix(web): better touch device detection * variable name
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { MediaQuery } from 'svelte/reactivity';
|
||||
|
||||
const hoverNone = new MediaQuery('hover: none');
|
||||
const pointerCoarse = new MediaQuery('pointer:coarse');
|
||||
const maxMd = new MediaQuery('max-width: 767px');
|
||||
|
||||
export const mobileDevice = {
|
||||
get hoverNone() {
|
||||
return hoverNone.current;
|
||||
get pointerCoarse() {
|
||||
return pointerCoarse.current;
|
||||
},
|
||||
get maxMd() {
|
||||
return maxMd.current;
|
||||
|
||||
Reference in New Issue
Block a user