Skip to content

Commit

Permalink
Fixed buttons not showing their hovered state when in a scrolling con…
Browse files Browse the repository at this point in the history
…tainer
  • Loading branch information
Sollace committed Dec 12, 2024
1 parent c0cd7ad commit 6b3a003
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ public boolean isMouseOver(double mouseX, double mouseY) {

@Override
public void renderWidget(DrawContext context, int mouseX, int mouseY, float tickDelta) {
this.hovered = isMouseOver(mouseX, mouseY);
MinecraftClient mc = MinecraftClient.getInstance();
RenderSystem.setShaderColor(1, 1, 1, alpha);
RenderSystem.enableBlend();
Expand Down

0 comments on commit 6b3a003

Please sign in to comment.