mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
[api-minor] Respect the drawingDelay
also when CSS-only zooming is used (issue 18022)
If a user manually calls `PDFPageView.prototype.update()` with a `drawingDelay`-option then it'll always be necessary to re-call the method *without* a delay afterwards, regardless of the `maxCanvasPixels`-value (e.g. even when CSS-only zooming is used).
This commit is contained in:
parent
b6765403a1
commit
1a3ea15950
1 changed files with 2 additions and 2 deletions
|
@ -667,12 +667,12 @@ class PDFPageView {
|
|||
this.maxCanvasPixels;
|
||||
}
|
||||
}
|
||||
const postponeDrawing =
|
||||
!onlyCssZoom && drawingDelay >= 0 && drawingDelay < 1000;
|
||||
const postponeDrawing = drawingDelay >= 0 && drawingDelay < 1000;
|
||||
|
||||
if (postponeDrawing || onlyCssZoom) {
|
||||
if (
|
||||
postponeDrawing &&
|
||||
!onlyCssZoom &&
|
||||
this.renderingState !== RenderingStates.FINISHED
|
||||
) {
|
||||
this.cancelRendering({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue