Skip to content

Commit 1bbc3ba

Browse files
committed
Enable to set touch coordination
1 parent 4baeb16 commit 1bbc3ba

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

frontend/.eslintrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,13 @@ module.exports = {
1313
],
1414
// add your custom rules here
1515
rules: {
16+
"no-console": "off",
17+
"no-restricted-syntax": [
18+
"error",
19+
{
20+
"selector": "CallExpression[callee.object.name='console'][callee.property.name!=/^(log|warn|error|info|trace)$/]",
21+
"message": "Unexpected property on console object was called"
22+
}
23+
]
1624
}
1725
}

frontend/components/organisms/annotation/EntityItemBox.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="highlight-container highlight-container--bottom-labels" @click="open">
2+
<div class="highlight-container highlight-container--bottom-labels" @click="open" @touchend="open">
33
<entity-item
44
v-for="(chunk, i) in chunks"
55
:key="i"
@@ -140,8 +140,8 @@ export default {
140140
show(e) {
141141
e.preventDefault()
142142
this.showMenu = false
143-
this.x = e.clientX
144-
this.y = e.clientY
143+
this.x = e.clientX || e.changedTouches[0].clientX
144+
this.y = e.clientY || e.changedTouches[0].clientY
145145
this.$nextTick(() => {
146146
this.showMenu = true
147147
})

0 commit comments

Comments
 (0)