diff -r f6462c744978 -r 3ad8513b751a src_js/iconolab-bundle/src/components/editor/ShapeFree.vue
--- a/src_js/iconolab-bundle/src/components/editor/ShapeFree.vue Fri Mar 17 14:53:01 2017 +0100
+++ b/src_js/iconolab-bundle/src/components/editor/ShapeFree.vue Fri Mar 17 15:33:38 2017 +0100
@@ -3,8 +3,8 @@
-
-
+
+
this.$emit('click'));
+ } else {
+ g.dblclick(() => this.closePath());
}
},
watch: {
@@ -147,6 +149,14 @@
return this.$parent.normalizePath(this.path) + ';FREE'
},
+ closePath: function() {
+ this.closed = true;
+ this.$nextTick(() => {
+ // FIXME Race condition with destroy
+ setTimeout(() => this.addTooltip(), 250);
+ });
+ },
+
addResizeHandler: function(handler) {
var self = this;
@@ -158,11 +168,7 @@
circle.click((e) => {
var key = parseInt(circle.attr('data-key'), 10);
if (key === 0 && this.points.length > 2) {
- this.closed = true;
- this.$nextTick(() => {
- // FIXME Race condition with destroy
- setTimeout(() => this.addTooltip(), 250);
- });
+ this.closePath();
}
});