aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/MenuItem.mjs
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-10-10 18:26:15 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-10-10 19:08:50 +0800
commit963f1ecf81ca2938364b5defdad5bd059c851601 (patch)
tree94872683cd0c0219e671f44b39e4946740a84b05 /src/MenuItem.mjs
parent484f3e5b494c32d722e0ca98ad0e78e12cc82eb9 (diff)
feat: only show map id when select manually
Diffstat (limited to 'src/MenuItem.mjs')
-rw-r--r--src/MenuItem.mjs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/MenuItem.mjs b/src/MenuItem.mjs
index 8b54539..cffd4a7 100644
--- a/src/MenuItem.mjs
+++ b/src/MenuItem.mjs
@@ -355,7 +355,11 @@ export const toggleBlockFocus = block =>
355export const toggleMapFocus = map => 355export const toggleMapFocus = map =>
356 new Item({ 356 new Item({
357 text: 'Toggle Focus', 357 text: 'Toggle Focus',
358 onclick: () => map.classList.toggle('focus'), 358 onclick: () => {
359 if (map.classList.toggle('focus')) {
360 map.classList.add('focus-manual')
361 }
362 },
359 }) 363 })
360 364
361/** 365/**