mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-24 05:28:07 +02:00
slight mobile changes
This commit is contained in:
parent
b92aae251b
commit
25a3718d91
2 changed files with 35 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<ul>
|
||||
<li>
|
||||
<li v-if="!isTouch">
|
||||
<i
|
||||
:class="[
|
||||
hosted && !hosting ? 'disabled' : '',
|
||||
|
@ -114,6 +114,13 @@
|
|||
|
||||
@Component({ name: 'neko-controls' })
|
||||
export default class extends Vue {
|
||||
get isTouch() {
|
||||
return (
|
||||
(typeof navigator.maxTouchPoints !== 'undefined' ? navigator.maxTouchPoints < 0 : false) ||
|
||||
'ontouchstart' in document.documentElement
|
||||
)
|
||||
}
|
||||
|
||||
get hosted() {
|
||||
return this.$accessor.remote.hosted
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue