diff --git a/src/scene.js b/src/scene.js index e4e05b8..8ba9f12 100644 --- a/src/scene.js +++ b/src/scene.js @@ -286,9 +286,11 @@ class Scene extends Screen { if (this.started) { if (this.status === Status.Running && isInBox(position(e), this.makePauseBox())) { this.status = Status.Paused; + return; } else if (this.status === Status.Paused) { this.status = Status.Waking; this.wakingTimer = 3; + return; } }