fix(editor): Fix bug with touchscreens (#3206)
This commit is contained in:
@@ -3,7 +3,8 @@ import Vue from 'vue';
|
|||||||
export const deviceSupportHelpers = Vue.extend({
|
export const deviceSupportHelpers = Vue.extend({
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
isTouchDevice: 'ontouchstart' in window || navigator.maxTouchPoints,
|
// @ts-ignore msMaxTouchPoints is deprecated but must fix tablet bugs before fixing this.. otherwise breaks touchscreen computers
|
||||||
|
isTouchDevice: 'ontouchstart' in window || navigator.msMaxTouchPoints,
|
||||||
isMacOs: /(ipad|iphone|ipod|mac)/i.test(navigator.platform), // TODO: `platform` deprecated
|
isMacOs: /(ipad|iphone|ipod|mac)/i.test(navigator.platform), // TODO: `platform` deprecated
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user