mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
47.09k stars 9.81k forks source link

[Feature]: stop renderring pages when user slide very quickly #18315

Closed HairlessVillager closed 1 week ago

HairlessVillager commented 1 week ago

Is the feature relevant to the Firefox PDF Viewer?

No

Feature description

When I slide the pdf very quickly, the disk load will be very high and lots of pages will be rendered out of screen. I hope that when I slide the pdf at a very high speed, not all the page will be rendered.

Other PDF viewers

No response

Snuffleupagus commented 1 week ago

Note that we already abort parsing/rendering of pages that are scrolled out of view.

Most likely this is a duplicate of e.g. https://bugzilla.mozilla.org/show_bug.cgi?id=1866296, however given the lack of a test-case it's impossible to tell for sure.