Skip to content

Commit 04e3afd

Browse files
authored
Add middle-mouse clicks as a valid button for ElementListWidgetExt (#219)
This means the button is also permitted for any child element, since the click it passed down.
1 parent 2dd1b1f commit 04e3afd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/dev/isxander/yacl3/gui/ElementListWidgetExt.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public void renderWidget(GuiGraphics graphics, int mouseX, int mouseY, float del
8888
@Override
8989
/*?}*/
9090
protected boolean isValidMouseClick(int button) {
91-
return button == InputConstants.MOUSE_BUTTON_LEFT || button == InputConstants.MOUSE_BUTTON_RIGHT;
91+
return button == InputConstants.MOUSE_BUTTON_LEFT || button == InputConstants.MOUSE_BUTTON_RIGHT || button == InputConstants.MOUSE_BUTTON_MIDDLE;
9292
}
9393

9494
@Override

0 commit comments

Comments
 (0)