mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-04-03 05:11:57 +08:00
Adjusting button hold handler
This commit is contained in:
parent
444806160b
commit
550715001d
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user