diff --git a/src/views/game/GameView.vue b/src/views/game/GameView.vue index 0e5f891..d2dcfaa 100644 --- a/src/views/game/GameView.vue +++ b/src/views/game/GameView.vue @@ -45,6 +45,10 @@ .reduce((sum, cur) => sum + cur); }); useInterval(async () => { + if (document.hidden) { + return; + } + let wholeClicks = Math.floor(autoClicksPerSecond.value); state.value.fractionClicks += autoClicksPerSecond.value - wholeClicks;