1
0

Prevent setting default image when petting is active during blinking

This commit is contained in:
2025-05-26 04:24:29 +02:00
parent 8e89dcf0b9
commit 2e261ff1aa

View File

@@ -123,7 +123,9 @@ window.AnimeCat = class AnimeCat {
if (!this._isSpeaking) { if (!this._isSpeaking) {
this.img.src = this.images.eyesClosed; this.img.src = this.images.eyesClosed;
setTimeout(() => { setTimeout(() => {
this.img.src = this.images.default; if (!this._pettingActive) {
this.img.src = this.images.default;
}
this._startBlinking(); this._startBlinking();
}, this.blinkDuration); }, this.blinkDuration);
} else { } else {