Skip to content

Commit

Permalink
Fix scroll grid scrolling speed to more closely match vanilla creativ…
Browse files Browse the repository at this point in the history
…e menu
  • Loading branch information
mezz committed Sep 9, 2024
1 parent 0357db5 commit cbe8b9a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private int getRowIndexForScroll(int hiddenRows, float scrollOffset) {

@Override
protected float calculateScrollAmount(double scrollDeltaY) {
int totalSlots = slots.size();
return (float) (scrollDeltaY / (double) totalSlots);
int hiddenRows = getHiddenAmount();
return (float) (scrollDeltaY / (double) hiddenRows);
}
}

0 comments on commit cbe8b9a

Please sign in to comment.