diff --git a/packages/editor-ui/src/components/mixins/deviceSupportHelpers.ts b/packages/editor-ui/src/components/mixins/deviceSupportHelpers.ts index f47b9e208..a8506f6ed 100644 --- a/packages/editor-ui/src/components/mixins/deviceSupportHelpers.ts +++ b/packages/editor-ui/src/components/mixins/deviceSupportHelpers.ts @@ -3,7 +3,8 @@ import Vue from 'vue'; export const deviceSupportHelpers = Vue.extend({ data() { 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 }; },