mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Moves rendering queue logic from PDFView
This commit is contained in:
parent
7642c39734
commit
a06a974f78
6 changed files with 178 additions and 110 deletions
|
@ -25,6 +25,7 @@ var PageView = function pageView(container, id, scale, defaultViewport,
|
|||
linkService, renderingQueue, cache,
|
||||
pageSource, viewer) {
|
||||
this.id = id;
|
||||
this.renderingId = 'page' + id;
|
||||
|
||||
this.rotation = 0;
|
||||
this.scale = scale || 1.0;
|
||||
|
@ -610,7 +611,7 @@ var PageView = function pageView(container, id, scale, defaultViewport,
|
|||
viewport: this.viewport,
|
||||
// intent: 'default', // === 'display'
|
||||
continueCallback: function pdfViewcContinueCallback(cont) {
|
||||
if (self.renderingQueue.highestPriorityPage !== 'page' + self.id) {
|
||||
if (!self.renderingQueue.isHighestPriority(self)) {
|
||||
self.renderingState = RenderingStates.PAUSED;
|
||||
self.resume = function resumeCallback() {
|
||||
self.renderingState = RenderingStates.RUNNING;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue