Prevent spacebar from scrolling
This commit is contained in:
1 parent
af65e3d5b3
commit
2b4450fc8c
1 file changed
+2
@@ -826,6 +826,8 @@ class Game {
|
||||
}
|
||||
return;
|
||||
}
|
||||
// Don't scroll pls
|
||||
ev.preventDefault();
|
||||
}
|
||||
|
||||
if (this.key_mapping[ev.key]) {
|
||||
|
||||
Reference in new issue
Block a user