Skip to content

Commit 89bc597

Browse files
committed
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.
1 parent 6af1860 commit 89bc597

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

static/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,7 @@ pomodoroBtn.addEventListener('click', () => {
757757

758758
function clearPomodoroTimer() {
759759
if (pomodoroTimer) { clearTimeout(pomodoroTimer); pomodoroTimer = null; }
760+
pomodoroBtn.classList.remove('ringing');
760761
}
761762

762763
let _audioCtx = null;

0 commit comments

Comments
 (0)