mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-29 10:27:21 +02:00
Compare commits
No commits in common. "cef4fcf0259f71954b585735f0e77b9f60dce61e" and "af89e77124bf9ccf271d27e3d3f619ce5878c7c4" have entirely different histories.
cef4fcf025
...
af89e77124
@ -1868,18 +1868,14 @@ class PDFViewer {
|
||||
this._spreadMode !== SpreadMode.NONE &&
|
||||
this._scrollMode !== ScrollMode.HORIZONTAL;
|
||||
|
||||
// If we are scrolling and the rendering of a detail view was just
|
||||
// cancelled, it's because the user is scrolling too quickly and so
|
||||
// we constantly need to re-render a different area.
|
||||
// Don't attempt to re-render it: this will be done once the user
|
||||
// stops scrolling.
|
||||
const ignoreDetailViews =
|
||||
// If we are zooming, do not re-render the detail views. Re-renders on
|
||||
// zoom happen with a delay, and once the rendering happens it will also
|
||||
// trigger rendering of the detail views.
|
||||
this.#scaleTimeoutId !== null ||
|
||||
// If we are scrolling and the rendering of a detail view was just
|
||||
// cancelled, it's because the user is scrolling too quickly and so
|
||||
// we constantly need to re-render a different area.
|
||||
// Don't attempt to re-render it: this will be done once the user
|
||||
// stops scrolling.
|
||||
(this.#scrollTimeoutId !== null &&
|
||||
visiblePages.views.some(page => page.detailView?.renderingCancelled));
|
||||
this.#scrollTimeoutId !== null &&
|
||||
visiblePages.views.some(page => page.detailView?.renderingCancelled);
|
||||
|
||||
const pageView = this.renderingQueue.getHighestPriority(
|
||||
visiblePages,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user