Skip to content

Commit

Permalink
fix: method signature changed in 1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Jan 13, 2024
1 parent 1141dce commit a73e4cc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -844,10 +844,10 @@ public boolean mouseClicked(double pMouseX, double pMouseY, int pButton) {
}

@Override
public boolean mouseScrolled(double mouseX, double mouseY, double delta) {
if (delta < 0) {
public boolean mouseScrolled(double mouseX, double mouseY, double scrollX, double scrollY) {
if (scrollX < 0) {
this.flipPage(false, true);
} else if (delta > 0) {
} else if (scrollX > 0) {
this.flipPage(true, true);
}

Expand Down

0 comments on commit a73e4cc

Please sign in to comment.