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:
commit
0603d1ac18
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