Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Commit

Permalink
Scrollbar scroll implemented #4 #9 #16
Browse files Browse the repository at this point in the history
  • Loading branch information
boomboompower committed Mar 26, 2020
1 parent 1ca75a4 commit aad1c25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ protected void onGuiInitExtra() {

ModernScroller modernScroller = new ModernScroller(this.width - 15, 5, 10, this.height - 10).disableTranslatable();

modernScroller.insertScrollCallback((val) -> this.yTranslation = val * 10);
modernScroller.insertScrollCallback((val) -> this.yTranslation = -(val * 150));

registerElement(modernScroller);
registerElement(skinSettings);
Expand Down

0 comments on commit aad1c25

Please sign in to comment.