mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-12 15:08:45 +08:00
disabled space scrolling
This commit is contained in:
parent
a293e47c73
commit
861eee429e
1 changed files with 7 additions and 0 deletions
|
@ -4973,6 +4973,13 @@ $(".pageTest #copyWordsListButton").click(async (event) => {
|
|||
}
|
||||
});
|
||||
|
||||
//stop space scrolling
|
||||
window.addEventListener('keydown', function(e) {
|
||||
if(e.keyCode == 32 && e.target == document.body) {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
||||
let ctx = $("#wpmChart");
|
||||
let wpmOverTimeChart = new Chart(ctx, {
|
||||
type: "line",
|
||||
|
|
Loading…
Reference in a new issue