From 88317ae2d932317fa4f24cf458dd48b53e347d05 Mon Sep 17 00:00:00 2001 From: LoveEevee Date: Mon, 1 Oct 2018 11:57:24 +0300 Subject: [PATCH] Allow unfocusing the tab before results are drawn --- public/src/js/scoresheet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/js/scoresheet.js b/public/src/js/scoresheet.js index e0569cd..493c32b 100644 --- a/public/src/js/scoresheet.js +++ b/public/src/js/scoresheet.js @@ -115,7 +115,7 @@ class Scoresheet{ ctx.scale(ratio, ratio) this.canvas.style.width = (winW / 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 }else{ ctx.clearRect(0, 0, winW / ratio, winH / ratio)