1
0

Fix incorrect mouth open time calculation

This commit is contained in:
2025-05-26 04:58:25 +02:00
parent bb1c61b010
commit f1c27e0364

View File

@@ -215,7 +215,7 @@ _bindMouseHold() {
const heldFor = Date.now() - mouseDownAt;
if (heldFor > 1000) {
// mind. 500ms oder (heldFor - 1000), je nachdem was größer ist
const mouthOpenTime = Math.max(heldFor - 1000, 100);
const mouthOpenTime = Math.max(heldFor - 1000, 1000);
this.img.src = this.images.mouthOpen || this.images.default;
this._startBlinking();
setTimeout(() => {