Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinnara authored Nov 10, 2023
1 parent d3ad11a commit 26b748d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,9 @@ private bool ShouldContinueFillingUpSpace(

// Ensure that both minor and major directions are taken into consideration so that if the scrolling direction
// is the same as the flow direction we still stop at the end of the viewport rectangle.
shouldContinue =
(direction == GenerateDirection.Forward && elementMajorStart < rectMajorEnd && elementMinorStart < rectMinorEnd) ||
(direction == GenerateDirection.Backward && elementMajorEnd > rectMajorStart && elementMinorEnd > rectMinorStart);
shouldContinue = direction == GenerateDirection.Forward
? elementMajorStart < rectMajorEnd && elementMinorStart < rectMinorEnd
: elementMajorEnd > rectMajorStart && elementMinorEnd > rectMinorStart;
}

return shouldContinue;
Expand Down

0 comments on commit 26b748d

Please sign in to comment.