Merge pull request #18077 from Snuffleupagus/issue-18022
[api-minor] Respect the `drawingDelay` also when CSS-only zooming is used (issue 18022)
This commit is contained in:
commit
0603d1ac18
@ -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