From 87829a94673742351228f21bf5569e3e319ba98a Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 26 May 2025 04:25:29 +0200 Subject: [PATCH] Refactor and fix issue with petting state in animeCat.js --- animeCat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/animeCat.js b/animeCat.js index dfd2e2a..c0cd224 100644 --- a/animeCat.js +++ b/animeCat.js @@ -301,8 +301,8 @@ _bindMouseHold() { img.src = this.images.mouthOpen || this.images.default; setTimeout(() => { if (!this._pettingActive) { - this.img.src = this.images.default; - } + this.img.src = this.images.default; + } setTimeout(() => { wrapper.style.transition = origTransition || ''; wrapper.style.transform = origTransform || '';