We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 01bc76e + 7f76a11 commit d3e04d2Copy full SHA for d3e04d2
1 file changed
web/pdf_thumbnail_viewer.js
@@ -898,11 +898,6 @@ class PDFThumbnailViewer {
898
firstRightX ??= prevX + w;
899
positionsX.push(prevX);
900
}
901
- if (reminder > 0 && i >= ii - reminder) {
902
- const cx = x + w / 2;
903
- positionsLastX.push(cx);
904
- lastRightX ??= cx + w;
905
- }
906
if (y > prevY) {
907
if (reminder === -1 && positionsX.length > 1) {
908
reminder = ii % positionsX.length;
@@ -911,6 +906,11 @@ class PDFThumbnailViewer {
911
firstBottomY ??= prevY + h;
912
positionsY.push(prevY);
913
909
+ if (reminder > 0 && i >= ii - reminder) {
910
+ const cx = x + w / 2;
+ positionsLastX.push(cx);
+ lastRightX ??= cx + w;
+ }
914
915
const space =
916
positionsX.length > 1
0 commit comments