diff --git a/Xplat/src/main/java/vazkii/patchouli/client/book/gui/GuiBook.java b/Xplat/src/main/java/vazkii/patchouli/client/book/gui/GuiBook.java index 663369d1..37bcde95 100644 --- a/Xplat/src/main/java/vazkii/patchouli/client/book/gui/GuiBook.java +++ b/Xplat/src/main/java/vazkii/patchouli/client/book/gui/GuiBook.java @@ -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