1
0

Ensure default image is set only if petting is not active in endSpeech method

This commit is contained in:
2025-05-26 04:24:12 +02:00
parent 00d33e2068
commit 8e89dcf0b9

View File

@@ -391,7 +391,9 @@ _bindMouseHold() {
/** Call when the stream ends */
endSpeech() {
clearInterval(this._talkIntervalId);
this.img.src = this.images.default;
if (!this._pettingActive) {
this.img.src = this.images.default;
}
this._speechTimeout = setTimeout(() => {
this.bubble.style.opacity = '0';
this._isSpeaking = false;