From 89bc59739a995cb8fa14b8db757e2f0cbd21d7e2 Mon Sep 17 00:00:00 2001 From: Gustavo Saiani Date: Mon, 6 Apr 2026 13:48:40 -0300 Subject: [PATCH] Clear pomodoro ringing animation when session stops (#112) clearPomodoroTimer() only cancelled the setTimeout but left the ringing CSS animation on the button, so the tomato kept bouncing after stopping a session. --- static/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/app.js b/static/app.js index 80a0c32..5b166d0 100644 --- a/static/app.js +++ b/static/app.js @@ -757,6 +757,7 @@ pomodoroBtn.addEventListener('click', () => { function clearPomodoroTimer() { if (pomodoroTimer) { clearTimeout(pomodoroTimer); pomodoroTimer = null; } + pomodoroBtn.classList.remove('ringing'); } let _audioCtx = null;