remove isTouch, fixes #112.

This commit is contained in:
Miroslav Šedivý 2021-12-07 23:11:51 +01:00
parent 3fae30b182
commit 65b03d9fbb

View File

@ -1,6 +1,6 @@
<template> <template>
<ul> <ul>
<li v-if="!isTouch && seesControl"> <li v-if="seesControl">
<i <i
:class="[ :class="[
!disabeld && shakeKbd ? 'shake' : '', !disabeld && shakeKbd ? 'shake' : '',
@ -242,13 +242,6 @@
export default class extends Vue { export default class extends Vue {
@Prop(Boolean) readonly shakeKbd!: boolean @Prop(Boolean) readonly shakeKbd!: boolean
get isTouch() {
return (
(typeof navigator.maxTouchPoints !== 'undefined' ? navigator.maxTouchPoints < 0 : false) ||
'ontouchstart' in document.documentElement
)
}
get severLocked(): boolean { get severLocked(): boolean {
return 'control' in this.$accessor.locked && this.$accessor.locked['control'] return 'control' in this.$accessor.locked && this.$accessor.locked['control']
} }