|
@@ -42,7 +42,8 @@ export default {
|
|
callback: false,
|
|
callback: false,
|
|
start: false,
|
|
start: false,
|
|
fixed: false,
|
|
fixed: false,
|
|
- current: false
|
|
|
|
|
|
+ current: false,
|
|
|
|
+ mousedown: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -117,6 +118,8 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
press: function (event) {
|
|
press: function (event) {
|
|
|
|
+ this.mousedown = true;
|
|
|
|
+
|
|
if (this.interaction === 'draw-box') {
|
|
if (this.interaction === 'draw-box') {
|
|
this.start = this.getEventCoordinates(event);
|
|
this.start = this.getEventCoordinates(event);
|
|
}
|
|
}
|
|
@@ -159,8 +162,12 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
track: function (event) {
|
|
track: function (event) {
|
|
- if (this.interaction === 'extreme-clicking')
|
|
|
|
|
|
+ if (this.interaction === 'extreme-clicking') {
|
|
|
|
+ if (this.mousedown)
|
|
|
|
+ this.press(event);
|
|
|
|
+
|
|
return;
|
|
return;
|
|
|
|
+ }
|
|
|
|
|
|
if (this.start) {
|
|
if (this.start) {
|
|
const coordinates = this.getEventCoordinates(event);
|
|
const coordinates = this.getEventCoordinates(event);
|
|
@@ -168,6 +175,8 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
release: function () {
|
|
release: function () {
|
|
|
|
+ this.mousedown = false;
|
|
|
|
+
|
|
if (this.interaction === 'extreme-clicking')
|
|
if (this.interaction === 'extreme-clicking')
|
|
return;
|
|
return;
|
|
|
|
|