Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit 65fc70c

Browse files
committed
🐛 Fix #229
1 parent c5c3ad7 commit 65fc70c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/classes/keyboard.class.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,12 @@ class Keyboard {
291291
}, 100);
292292
};
293293
}
294+
295+
// See #229
296+
key.onmouseleave = () => {
297+
clearTimeout(key.holdTimeout);
298+
clearInterval(key.holdInterval);
299+
};
294300
});
295301
});
296302

0 commit comments

Comments
 (0)