Skip to content

Commit

Permalink
Fix #696
Browse files Browse the repository at this point in the history
  • Loading branch information
alcatrazEscapee committed Nov 2, 2023
1 parent 106a9c7 commit 095638f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ public void renderWidget(GuiGraphics graphics, int mouseX, int mouseY, float par
}
}

@Override
public boolean mouseClicked(double mouseX, double mouseY, int mouseButton) {
// Returning false prevents this button from becoming focused (which causes the tooltip to stick) on a single click.
// See Patchouli#696
super.mouseClicked(mouseX, mouseY, mouseButton);
return false;
}

@Override
public void playDownSound(SoundManager soundHandlerIn) {
GuiBook.playBookFlipSound(parent.book);
Expand Down

0 comments on commit 095638f

Please sign in to comment.