Fix progress bar when resizing
This commit is contained in:
parent
382992661e
commit
8029e220c3
@ -297,3 +297,12 @@ function pad(num) {
|
|||||||
return ("00" + num).substr(-2);
|
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";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user