Skip to content

Commit

Permalink
Fix for scrolling (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
tchudyk committed Sep 11, 2022
1 parent a71ced6 commit b5ef653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/fxmisc/flowless/VirtualFlow.java
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ void setLengthOffset(double pixels) {
double total = totalLengthEstimateProperty().getOrElse(0.0);
double length = sizeTracker.getViewportLength();
double max = Math.max(total - length, 0);
double current = lengthOffsetEstimate.getValue();
double current = Math.round(lengthOffsetEstimate.getValue());

if(pixels > max) pixels = max;
if(pixels < 0) pixels = 0;
Expand Down

0 comments on commit b5ef653

Please sign in to comment.