From 1f86e7cc86b9df1ab7dd2a28ef85ee217e06dc04 Mon Sep 17 00:00:00 2001 From: Erik Date: Fri, 19 Jun 2026 09:33:51 +0200 Subject: [PATCH] polish(midsummer): guard frog-hop against rapid re-click stacking Co-Authored-By: Claude Fable 5 --- frontend/src/components/map/Sidebar.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/components/map/Sidebar.tsx b/frontend/src/components/map/Sidebar.tsx index bdf8d1be..a4ce09d5 100644 --- a/frontend/src/components/map/Sidebar.tsx +++ b/frontend/src/components/map/Sidebar.tsx @@ -62,6 +62,9 @@ export const Sidebar: React.FC = ({ { // 🐸 Små grodorna hop — bounce the whole layout and send frogs // leaping up the screen. Replaces the old rickroll. + // Ignore rapid re-clicks while a hop is already in flight so the + // frog layers and their cleanup timers don't stack. + if (document.querySelector('.ms-hop-frogs')) return; const layout = document.querySelector('.ml-layout') as HTMLElement | null; if (layout) { layout.classList.remove('ms-hop');