Skip to content

Commit

Permalink
Fixed error when opening single-page file on mobile device
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-litvinchik committed Jun 6, 2024
1 parent 8b0e57b commit 76a3ee1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class ScrollableEditedDirective implements AfterViewInit, OnChanges {
pageNum = pages.length;
counter = pageNum;
// load not loaded pages
while (!this.loadedPagesSet.has(counter)) {
while (counter > 0 && !this.loadedPagesSet.has(counter)) {
this._pagePreloadService.changeLastPageInView(counter);
this.loadedPagesSet.add(counter);
counter--;
Expand Down

0 comments on commit 76a3ee1

Please sign in to comment.