Skip to content

Commit

Permalink
Fix right and middle clicking
Browse files Browse the repository at this point in the history
  • Loading branch information
HyCraftHD committed Apr 10, 2024
1 parent 7779794 commit e494610
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ public void updateSettings(int x, int y, int width, int height) {
setHeight(height <= 0 ? 1 : height);
}

@Override
protected boolean isValidMouseClick(int button) {
return button >= 0 && button <= 2;
}

@Override
public boolean mouseDragged(double mouseX, double mouseY, int button, double dragX, double dragY) {
if (getFocused() != null && isDragging() && button == 0) {
Expand Down

0 comments on commit e494610

Please sign in to comment.