Ensure minimum mouth open time of 1000ms
This commit is contained in:
@@ -247,7 +247,7 @@ _bindMouseHold() {
|
|||||||
// Trostpreis: siehe oben
|
// Trostpreis: siehe oben
|
||||||
else if (heldFor > 1000) {
|
else if (heldFor > 1000) {
|
||||||
reopenEyes();
|
reopenEyes();
|
||||||
const mouthOpenTime = Math.max(heldFor - 1000, 0);
|
const mouthOpenTime = Math.max(heldFor - 1000, 1000);
|
||||||
if (mouthOpenTime > 0) {
|
if (mouthOpenTime > 0) {
|
||||||
this.img.src = this.images.mouthOpen || this.images.default;
|
this.img.src = this.images.mouthOpen || this.images.default;
|
||||||
this._startBlinking();
|
this._startBlinking();
|
||||||
|
|||||||
Reference in New Issue
Block a user