From fc94b6fdb1869bf68fb5417eda60d4254775f42b Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 26 May 2025 04:51:48 +0200 Subject: [PATCH] Fix syntax error in animeCat.js --- animeCat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/animeCat.js b/animeCat.js index 2bec023..ada1a25 100644 --- a/animeCat.js +++ b/animeCat.js @@ -213,7 +213,7 @@ _bindMouseHold() { mouseDown = false; reopenEyes(); const heldFor = Date.now() - mouseDownAt; - const mouthOpenTime = Math.max(heldFor - 1000, 0); + const mouthOpenTime = (Math.max(heldFor - 1000, 0) < 500 ?) 500 : Math.max(heldFor - 1000, 0); if (mouthOpenTime > 0) { this.img.src = this.images.mouthOpen || this.images.default; this._startBlinking();