mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-05-23 19:30:59 +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
@ -667,12 +667,12 @@ class PDFPageView {
|
|||||||
this.maxCanvasPixels;
|
this.maxCanvasPixels;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const postponeDrawing =
|
const postponeDrawing = drawingDelay >= 0 && drawingDelay < 1000;
|
||||||
!onlyCssZoom && drawingDelay >= 0 && drawingDelay < 1000;
|
|
||||||
|
|
||||||
if (postponeDrawing || onlyCssZoom) {
|
if (postponeDrawing || onlyCssZoom) {
|
||||||
if (
|
if (
|
||||||
postponeDrawing &&
|
postponeDrawing &&
|
||||||
|
!onlyCssZoom &&
|
||||||
this.renderingState !== RenderingStates.FINISHED
|
this.renderingState !== RenderingStates.FINISHED
|
||||||
) {
|
) {
|
||||||
this.cancelRendering({
|
this.cancelRendering({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user