Commit 88317ae2 authored by LoveEevee's avatar LoveEevee

Allow unfocusing the tab before results are drawn

parent fceb7089
...@@ -115,7 +115,7 @@ class Scoresheet{ ...@@ -115,7 +115,7 @@ class Scoresheet{
ctx.scale(ratio, ratio) ctx.scale(ratio, ratio)
this.canvas.style.width = (winW / this.pixelRatio) + "px" this.canvas.style.width = (winW / this.pixelRatio) + "px"
this.canvas.style.height = (winH / this.pixelRatio) + "px" this.canvas.style.height = (winH / this.pixelRatio) + "px"
}else if(!document.hasFocus()){ }else if(!document.hasFocus() && ms - this.state.screenMS - this.state.startDelay > 2400){
return return
}else{ }else{
ctx.clearRect(0, 0, winW / ratio, winH / ratio) ctx.clearRect(0, 0, winW / ratio, winH / ratio)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment