Prevent setting default image when petting is active during blinking
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user