diff options
-rw-r--r-- | game.js | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -359,6 +359,11 @@ function setupBindings() { else if (ev.key == "s" || ev.key == "ArrowDown") down = false; padUpdate(); }); + + window.addEventListener("blur", function() { + up = down = false; + padUpdate(); + }); } window.addEventListener("load", function() { |