Skip to content

Commit

Permalink
Updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ivancea committed Nov 13, 2024
1 parent 08b3e0c commit 5068607
Show file tree
Hide file tree
Showing 3 changed files with 2,616 additions and 1,224 deletions.
8 changes: 6 additions & 2 deletions client/input/input-handler.relative-mouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ export class RelativeMouseInputHandler implements InputHandler {
) {
element.addEventListener("mousemove", this.onMouseMove);
element.addEventListener("click", () => {
element.requestPointerLock();
element.requestPointerLock().catch((e: unknown) => {
console.error("Pointer lock failed", e);
});
});
element.requestPointerLock().catch((e: unknown) => {
console.error("Pointer lock failed", e);
});
element.requestPointerLock();

this.interval = setInterval(() => {
assert(context === getContext(), "Context changed");
Expand Down
Loading

0 comments on commit 5068607

Please sign in to comment.