Fix issue with petting state in animeCat.js
This commit is contained in:
@@ -158,7 +158,7 @@ _bindMouseHold() {
|
||||
|
||||
const closeEyes = () => { this.img.src = this.images.eyesClosed; };
|
||||
const reopenEyes = () => {
|
||||
if (!joyActive && !this._isSpeaking) this.img.src = this.images.default;
|
||||
if (!joyActive && !this._isSpeaking && !this._pettingActive) this.img.src = this.images.default;
|
||||
};
|
||||
|
||||
this.img.addEventListener('mousedown', (e) => {
|
||||
|
||||
Reference in New Issue
Block a user