Fix delta mouse bug while when closing inventory

This commit is contained in:
2026-09-27 19:47:30 -03:00
parent 0d513ab3f2
commit 966b517bbd
2 changed files with 38 additions and 8 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ export class Client {
}
if (InputManager.is_mouse_grabbed()) {
const mouse = InputManager.get_mouse_delta();
const mouse = InputManager.get_look_delta();
player.turn(mouse.x, mouse.y);
}
InputManager.set_mouse_grabbed(!this.screen);