Skip to content

Commit

Permalink
fix: make game mobile friendly once more!
Browse files Browse the repository at this point in the history
  • Loading branch information
Ray Arayilakath committed May 21, 2021
1 parent b6aebe1 commit 10b41a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ Tether.prototype.step = function () {
forXAndY([this.position, game.lastMousePosition], forXAndY.subtract)
) < leniency
) {
canvas.requestPointerLock();
if(canvas.requestPointerLock) canvas.requestPointerLock();
if (
!(this.lastInteraction !== 'mouse' || document.pointerLockElement === canvas)
)
Expand Down

0 comments on commit 10b41a4

Please sign in to comment.