From c869a64e540f8ffb7b6d74b47ee4e993338f3e22 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Mon, 30 Sep 2024 12:12:37 +0800 Subject: style: comments --- src/dumbymap.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/dumbymap.mjs b/src/dumbymap.mjs index 7a54d73..e0f9ecc 100644 --- a/src/dumbymap.mjs +++ b/src/dumbymap.mjs @@ -363,7 +363,7 @@ export const generateMaps = (container, { delay, mapCallback }) => { ?.enterHandler?.call(this, dumbymap); } - // Since layout change may show/hide showcase, the current focused map should do something + // Since layout change may show/hide showcase, the current focused map may need to go into/outside showcase // Reset attribute triggers MutationObserver which is observing it const focusMap = container.querySelector('.mapclay.focus') ?? @@ -506,6 +506,7 @@ export const generateMaps = (container, { delay, mapCallback }) => { .forEach(e => e.remove()); } + // TODO Use debounce of user input to decide rendering timing // Render maps with delay const timer = setTimeout( () => -- cgit v1.2.3-70-g09d2