We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1c8150 commit da91c21Copy full SHA for da91c21
src/client/scripts/FirstPersonControls.js
@@ -144,6 +144,11 @@ var FirstPersonControls = class FirstPersonControls {
144
$(".gameOn").click(function () {
145
_this.setState("game");
146
});
147
+ window.onblur = function () {
148
+ Object.keys(_this.kc).forEach(function (el) {
149
+ _this.game.socket.emit("move", _this.kc[el], false);
150
+ });
151
+ };
152
lockChangeAlert = function () {
153
if (
154
document.pointerLockElement === _this.game.canvas ||
0 commit comments