diff --git a/src/lib/components/Keyboard.js b/src/lib/components/Keyboard.js index cbf0bc61..64bc69c8 100644 --- a/src/lib/components/Keyboard.js +++ b/src/lib/components/Keyboard.js @@ -217,6 +217,12 @@ class SimpleKeyboard { */ this.isMouseHold = true; + if(this.holdInteractionTimeout) + clearTimeout(this.holdInteractionTimeout); + + if(this.holdTimeout) + clearTimeout(this.holdTimeout); + /** * @type {object} Time to wait until a key hold is detected */