Vanessa 2022-11-09 10:18:05 +08:00
parent 395c2e6875
commit 0656dcc2ca

View file

@ -3,7 +3,7 @@ export const isMobile = () => {
};
export const isTouchDevice = () => {
return ("ontouchstart" in window) || navigator.maxTouchPoints > 0;
return ("ontouchstart" in window) || navigator.maxTouchPoints > 1;
};
export const isArrayEqual = (arr1: string[], arr2: string[]) => {