From 2e261ff1aa62e85b79845446bfbfb46e98846214 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 26 May 2025 04:24:29 +0200 Subject: [PATCH] Prevent setting default image when petting is active during blinking --- animeCat.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/animeCat.js b/animeCat.js index ace8302..5571728 100644 --- a/animeCat.js +++ b/animeCat.js @@ -123,7 +123,9 @@ window.AnimeCat = class AnimeCat { if (!this._isSpeaking) { this.img.src = this.images.eyesClosed; setTimeout(() => { - this.img.src = this.images.default; + if (!this._pettingActive) { + this.img.src = this.images.default; + } this._startBlinking(); }, this.blinkDuration); } else {