Skip to content

Commit

Permalink
Fix VirtualFlow setLengthOffset (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jugen authored Aug 5, 2020
1 parent 7062baf commit 760ee09
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 @@ -531,7 +531,7 @@ void setLengthOffset(double pixels) {
double diff = pixels - current;
if(diff == 0) {
// do nothing
} else if(Math.abs(diff) < length) { // distance less than one screen
} else if(Math.abs(diff) <= length) { // distance less than one screen
navigator.scrollCurrentPositionBy(diff);
} else {
jumpToAbsolutePosition(pixels);
Expand Down

0 comments on commit 760ee09

Please sign in to comment.