From 8029e220c3ff1e0861ceddea28db84c019d95c3a Mon Sep 17 00:00:00 2001 From: Reimar Date: Sat, 4 Apr 2026 15:51:49 +0200 Subject: [PATCH] Fix progress bar when resizing --- popup/script.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/popup/script.js b/popup/script.js index 56261ad..bb5fffe 100644 --- a/popup/script.js +++ b/popup/script.js @@ -297,3 +297,12 @@ function pad(num) { return ("00" + num).substr(-2); } +// Fix progress bar when resizing on Firefox +// https://bugzilla.mozilla.org/show_bug.cgi?id=1738925 +window.addEventListener("resize", function() { + if (params.type === "timer") { + progressBar.style.animationPlayState = "paused"; + progressBar.style.animationPlayState = "running"; + } +}); +