Add petting active flag in animeCat.js
This commit is contained in:
@@ -162,6 +162,7 @@ _bindMouseHold() {
|
|||||||
this.img.addEventListener('mousedown', (e) => {
|
this.img.addEventListener('mousedown', (e) => {
|
||||||
if (this._isSpeaking || joyActive) return;
|
if (this._isSpeaking || joyActive) return;
|
||||||
if (!isMouseNearCat(e)) return;
|
if (!isMouseNearCat(e)) return;
|
||||||
|
this._pettingActive = true;
|
||||||
|
|
||||||
mouseDown = true;
|
mouseDown = true;
|
||||||
mouseDownAt = Date.now();
|
mouseDownAt = Date.now();
|
||||||
|
|||||||
Reference in New Issue
Block a user