diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-09-21 17:05:15 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-09-21 17:08:05 +0800 |
commit | cc906173bff1bb9edd2271b83c71856722047820 (patch) | |
tree | 7ac919b99e1fbb4faee8310fa2f20ec56f2035d2 /src/Layout.mjs | |
parent | 825df5465b580061e9af635f1011e5dc6a65db03 (diff) |
fix: middle click to hide draggable block
Diffstat (limited to 'src/Layout.mjs')
-rw-r--r-- | src/Layout.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Layout.mjs b/src/Layout.mjs index 20e8a23..861f56b 100644 --- a/src/Layout.mjs +++ b/src/Layout.mjs | |||
@@ -36,7 +36,7 @@ export class OverlayLayout extends Layout { | |||
36 | draggablePart.onmouseup = (e) => { | 36 | draggablePart.onmouseup = (e) => { |
37 | if (e.button === 1) { | 37 | if (e.button === 1) { |
38 | // Hide block with middle click | 38 | // Hide block with middle click |
39 | draggableBlock.style.display = "none"; | 39 | draggableBlock.setAttribute("data-hide", "true") |
40 | } | 40 | } |
41 | } | 41 | } |
42 | 42 | ||