1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

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:
Tim van der Meij 2024-05-16 14:19:40 +02:00 committed by GitHub
commit 0603d1ac18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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({