diff options
Diffstat (limited to 'src/MenuItem.mjs')
-rw-r--r-- | src/MenuItem.mjs | 6 |
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 => | |||
355 | export const toggleMapFocus = map => | 355 | export 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 | /** |