Skip to content

Commit

Permalink
Also ignore a mouse event on mouse regrabs
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenraven committed Mar 13, 2023
1 parent 7aa1195 commit 781e792
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/lwjglx/input/Mouse.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ public static void setGrabbed(boolean grab) {
if (!grab) {
setCursorPosition(Display.getWidth() / 2, Display.getHeight() / 2);
}
ignoreNextMove = true;
ignoreNextDelta = true;
}

Expand Down

0 comments on commit 781e792

Please sign in to comment.