aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/dumbymap.mjs
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-10-25 00:23:07 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-10-25 00:26:36 +0800
commit88e8fa7a3022aa0d5bfc9bcf825304c471f98d9f (patch)
treef62bcbe6dd7bed95288f18ef1fa5b644478ad6a8 /src/dumbymap.mjs
parent125f6e3057a16c15c4fe6e379bce601af3cfa0c5 (diff)
style: standardjs
Diffstat (limited to 'src/dumbymap.mjs')
-rw-r--r--src/dumbymap.mjs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dumbymap.mjs b/src/dumbymap.mjs
index bb3737b..3200a05 100644
--- a/src/dumbymap.mjs
+++ b/src/dumbymap.mjs
@@ -543,7 +543,7 @@ export const generateMaps = (container, {
543 menu.remove() 543 menu.remove()
544 } 544 }
545 container.appendChild(menu) 545 container.appendChild(menu)
546 new MutationObserver(() => { 546 new window.MutationObserver(() => {
547 menu.style.display = 'block' 547 menu.style.display = 'block'
548 menu.style.left = (e.clientX - menu.offsetParent.offsetLeft + 10) + 'px' 548 menu.style.left = (e.clientX - menu.offsetParent.offsetLeft + 10) + 'px'
549 menu.style.top = (e.clientY - menu.offsetParent.offsetTop + 5) + 'px' 549 menu.style.top = (e.clientY - menu.offsetParent.offsetTop + 5) + 'px'