[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;
|
||||
}
|
||||
}
|
||||
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…
x
Reference in New Issue
Block a user