aboutsummaryrefslogtreecommitdiff
path: root/src/components/TileTree.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/TileTree.vue')
-rw-r--r--src/components/TileTree.vue8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/TileTree.vue b/src/components/TileTree.vue
index f007935..c6f0061 100644
--- a/src/components/TileTree.vue
+++ b/src/components/TileTree.vue
@@ -176,6 +176,12 @@ export default defineComponent({
this.activeRoot = layoutNode;
tryLayout(layoutNode, this.tileAreaPos, this.tileAreaDims, this.layoutOptions, true);
},
+ // For preventing double-clicks from highlighting text
+ onMouseDown(evt: Event){
+ if (evt.detail == 2){
+ evt.preventDefault();
+ }
+ },
},
created(){
tryLayout(this.activeRoot, this.tileAreaPos, this.tileAreaDims, this.layoutOptions, true);
@@ -188,7 +194,7 @@ export default defineComponent({
</script>
<template>
-<div :style="styles">
+<div :style="styles" @mousedown="onMouseDown">
<tile :layoutNode="layoutTree"
:headerSz="layoutOptions.headerSz" :tileSpacing="layoutOptions.tileSpacing" :options="componentOptions"
@leaf-clicked="onInnerLeafClicked" @header-clicked="onInnerHeaderClicked"