mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
small change to protect
This commit is contained in:
parent
d00c1f62fc
commit
8541d4bd41
1 changed files with 5 additions and 2 deletions
|
@ -65,8 +65,11 @@ function ThumbPad(hand) {
|
|||
this.buttonPress = function(value) {
|
||||
_thisPad.buttonValue = value;
|
||||
if (value === 0) {
|
||||
Script.clearTimeout(activationTimeout);
|
||||
activationTimeout = null;
|
||||
if (activationTimeout !== null) {
|
||||
Script.clearTimeout(activationTimeout);
|
||||
activationTimeout = null;
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue