disabled space scrolling

This commit is contained in:
Jack 2020-10-19 17:20:17 +01:00
parent a293e47c73
commit 861eee429e

View file

@ -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",