1
0

Ensure minimum mouth open time of 1000ms

This commit is contained in:
2025-05-26 04:59:09 +02:00
parent f1c27e0364
commit 5eb1870dcd

View File

@@ -247,7 +247,7 @@ _bindMouseHold() {
// Trostpreis: siehe oben
else if (heldFor > 1000) {
reopenEyes();
const mouthOpenTime = Math.max(heldFor - 1000, 0);
const mouthOpenTime = Math.max(heldFor - 1000, 1000);
if (mouthOpenTime > 0) {
this.img.src = this.images.mouthOpen || this.images.default;
this._startBlinking();