Fix progress bar when resizing

This commit is contained in:
Reimar 2026-04-04 15:51:49 +02:00
parent 382992661e
commit 8029e220c3
Signed by: Reimar
GPG Key ID: 93549FA07F0AE268

View File

@ -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";
}
});