diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-10-10 18:26:15 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-10-10 19:08:50 +0800 |
commit | 963f1ecf81ca2938364b5defdad5bd059c851601 (patch) | |
tree | 94872683cd0c0219e671f44b39e4946740a84b05 /src/dumbyUtils.mjs | |
parent | 484f3e5b494c32d722e0ca98ad0e78e12cc82eb9 (diff) |
feat: only show map id when select manually
Diffstat (limited to 'src/dumbyUtils.mjs')
-rw-r--r-- | src/dumbyUtils.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dumbyUtils.mjs b/src/dumbyUtils.mjs index 8148366..170cb16 100644 --- a/src/dumbyUtils.mjs +++ b/src/dumbyUtils.mjs | |||
@@ -12,7 +12,7 @@ export function focusNextMap (reverse = false) { | |||
12 | const nextIndex = (index + (reverse ? -1 : 1)) % renderedList.length | 12 | const nextIndex = (index + (reverse ? -1 : 1)) % renderedList.length |
13 | 13 | ||
14 | const nextMap = renderedList.at(nextIndex) | 14 | const nextMap = renderedList.at(nextIndex) |
15 | nextMap.classList.add('focus') | 15 | nextMap.classList.add('focus', 'focus-manual') |
16 | nextMap.scrollIntoView({ behavior: 'smooth' }) | 16 | nextMap.scrollIntoView({ behavior: 'smooth' }) |
17 | } | 17 | } |
18 | 18 | ||