1
0

Refactor and fix issue with petting state in animeCat.js

This commit is contained in:
2025-05-26 04:25:25 +02:00
parent a424189a83
commit 2855656030

View File

@@ -300,7 +300,9 @@ _bindMouseHold() {
wrapper.style.transform = 'translateY(0) rotate(0deg)';
img.src = this.images.mouthOpen || this.images.default;
setTimeout(() => {
img.src = this.images.default;
if (!this._pettingActive) {
this.img.src = this.images.default;
}
setTimeout(() => {
wrapper.style.transition = origTransition || '';
wrapper.style.transform = origTransform || '';