mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
[GV] Add an option in the find controller to update matches count only when the last page is reached (bug 1803188).
In GeckoView, on an event, a callback must be executed with the result of an action, but the callback can be used only one time. So for each FindInPage event, we must trigger only one matches count update.
This commit is contained in:
parent
8a0ca04399
commit
661f425934
3 changed files with 58 additions and 4 deletions
|
@ -458,6 +458,8 @@ const PDFViewerApplication = {
|
|||
const findController = new PDFFindController({
|
||||
linkService: pdfLinkService,
|
||||
eventBus,
|
||||
updateMatchesCountOnProgress:
|
||||
typeof PDFJSDev === "undefined" || !PDFJSDev.test("GECKOVIEW"),
|
||||
});
|
||||
this.findController = findController;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue