瀏覽代碼

fixed some click-event handling issues

Dimitri Korsch 3 年之前
父節點
當前提交
e680ae2a0b
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      webui/src/components/media/annotation-box.vue

+ 3 - 3
webui/src/components/media/annotation-box.vue

@@ -112,7 +112,7 @@ export default {
 
     doubleLeftClick(event) {
       console.debug("double left click", event);
-      this.$emit('interaction', "info-box");
+      this.$emit('interaction', "move-box");
       this.$emit('crop', this.box);
     },
 
@@ -146,8 +146,6 @@ export default {
       }
       else if (this.croppable) {
         this.selectMe();
-      } else{
-        return
       }
 
       event.stopPropagation();
@@ -189,6 +187,8 @@ export default {
     click: function (event) {
       this.clickCounter++;
 
+      event.stopPropagation();
+
       if (this.clickCounter == 1) {
         this.timer = setTimeout( () => {
           this.clickCounter = 0;