remove isTouch, fixes #112.
This commit is contained in:
parent
3fae30b182
commit
65b03d9fbb
@ -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']
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user