Refactor and fix issue with petting state in animeCat.js
This commit is contained in:
@@ -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 || '';
|
||||
|
||||
Reference in New Issue
Block a user