Browse Source

Enable to set touch coordination

pull/341/head
Hironsan 5 years ago
parent
commit
1bbc3ba756
2 changed files with 11 additions and 3 deletions
  1. 8
      frontend/.eslintrc.js
  2. 6
      frontend/components/organisms/annotation/EntityItemBox.vue

8
frontend/.eslintrc.js

@ -13,5 +13,13 @@ module.exports = {
],
// add your custom rules here
rules: {
"no-console": "off",
"no-restricted-syntax": [
"error",
{
"selector": "CallExpression[callee.object.name='console'][callee.property.name!=/^(log|warn|error|info|trace)$/]",
"message": "Unexpected property on console object was called"
}
]
}
}

6
frontend/components/organisms/annotation/EntityItemBox.vue

@ -1,5 +1,5 @@
<template>
<div class="highlight-container highlight-container--bottom-labels" @click="open">
<div class="highlight-container highlight-container--bottom-labels" @click="open" @touchend="open">
<entity-item
v-for="(chunk, i) in chunks"
:key="i"
@ -140,8 +140,8 @@ export default {
show(e) {
e.preventDefault()
this.showMenu = false
this.x = e.clientX
this.y = e.clientY
this.x = e.clientX || e.changedTouches[0].clientX
this.y = e.clientY || e.changedTouches[0].clientY
this.$nextTick(() => {
this.showMenu = true
})

Loading…
Cancel
Save