6
0
Эх сурвалжийг харах

fixed some click-event handling issues

Dimitri Korsch 3 жил өмнө
parent
commit
e680ae2a0b

+ 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;