-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[api-minor] Respect the drawingDelay
also when CSS-only zooming is used (issue 18022)
#18077
Conversation
…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).
/botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/a24ee192fedf149/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/a24ee192fedf149/output.txt Total script time: 1.91 mins Published |
/botio integrationtest |
From: Bot.io (Linux m4)ReceivedCommand cmd_integrationtest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/abd20738a5eb7cf/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_integrationtest from @Snuffleupagus received. Current queue size: 1 Live output at: http://54.193.163.58:8877/266bf72cb5fe464/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/abd20738a5eb7cf/output.txt Total script time: 7.13 mins
|
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/266bf72cb5fe464/output.txt Total script time: 19.54 mins
|
The change looks good to me aside from the comment above, and two questions:
|
I believe it is possible to test this by listening to the |
|
If that's possible that'd be great; thanks! It's not a must-have for landing this PR, but if it's possible to have some (basic) testing for either this issue or CSS zooming in general that would increase confidence in the code.
I agree. Let's keep this as-is then. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks good from my point of view, now that the questions above have been addressed. I'd prefer we wait a few days with merging this until we know if we can include a test for this, but otherwise I'm also not opposed to doing that in a separate PR if that turns out to be more complicated than anticipated.
@timvandermeij Unfortunately I don't think I'll be able to submit a test until next week. |
@nicolo-ribaudo No worries; we're already happy that you're willing to help out with this, so no rush. Let's land this PR so the issue is resolved, and I have opened follow-up issue #18105 for introducing tests for this functionality (since that scope is a bit broader than just this particular patch). @Snuffleupagus Thank you for the patch! |
If a user manually calls
PDFPageView.prototype.update()
with adrawingDelay
-option then it'll always be necessary to re-call the method without a delay afterwards, regardless of themaxCanvasPixels
-value (e.g. even when CSS-only zooming is used).