Skip to content

Commit

Permalink
Fix focus sticking on next/previous page buttons #696 (#697)
Browse files Browse the repository at this point in the history
  • Loading branch information
alcatrazEscapee authored Nov 22, 2023
1 parent f75ec4f commit 3e9a848
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,15 @@ public boolean mouseClickedScaled(double mouseX, double mouseY, int mouseButton)
}
}

return super.mouseClicked(mouseX, mouseY, mouseButton);
for (GuiEventListener listener : children()) {
if (listener.mouseClicked(mouseX, mouseY, mouseButton)) {
if (mouseButton == GLFW.GLFW_MOUSE_BUTTON_LEFT) {
setDragging(true);
}
return true;
}
}
return false;
}

@Override
Expand Down

0 comments on commit 3e9a848

Please sign in to comment.