Skip to content

Commit

Permalink
Update UserInterfaceUtils.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Fexcraft committed Feb 20, 2020
1 parent 13d62f0 commit e15c27b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/net/fexcraft/app/fmt/ui/UserInterfaceUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ public void apply(float val){
@Override
public void onScroll(double yoffset){
apply(tryAdd(getValue(), yoffset > 0, FMTB.MODEL.rate)); //Print.console(value);
if(fieldid != null) FMTB.MODEL.updateValue(this, fieldid, true); if(update != null) update.run();
if(fieldid != null) FMTB.MODEL.updateValue(this, fieldid, yoffset > 0); if(update != null) update.run();
}

@Override
Expand Down Expand Up @@ -475,7 +475,7 @@ public void apply(float f){
@Override
public void onScroll(double yoffset){
apply(tryAdd(getValue(), yoffset > 0, FMTB.MODEL.rate));
FMTB.MODEL.updateValue(this, fieldid, true);
FMTB.MODEL.updateValue(this, fieldid, yoffset > 0);
}

@Override
Expand Down Expand Up @@ -586,7 +586,7 @@ public void apply(float val){
@Override
public void onScroll(double yoffset){
apply(tryAdd(getValue(), yoffset > 0, FMTB.MODEL.rate));
FMTB.MODEL.updateValue(this, fieldid, true);
FMTB.MODEL.updateValue(this, fieldid, yoffset > 0);
}

@Override
Expand Down

0 comments on commit e15c27b

Please sign in to comment.