Skip to content

Commit

Permalink
Fix mousewheel scrolling in the guide (AppliedEnergistics#7583)
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte authored Feb 1, 2024
1 parent 137cb53 commit 0b9fc3d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ public boolean mouseDragged(double mouseX, double mouseY, int button, double dra
}

@Override
public boolean mouseScrolled(double mouseX, double mouseY, double delta, double deltaHorizontal) {
public boolean mouseScrolled(double mouseX, double mouseY, double deltaX, double deltaY) {
if (this.visible) {
this.setScrollAmount((int) (this.scrollAmount - delta * 10));
this.setScrollAmount((int) (this.scrollAmount - deltaY * 10));
return true;
} else {
return false;
Expand Down

0 comments on commit 0b9fc3d

Please sign in to comment.