mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Fix resetting of cursor-tools when closing the document (PR 17464 follow-up)
With the removal of the "secondarytoolbarreset" event in PR 17464 resetting of cursor-tools state accidentally broke.
This commit is contained in:
parent
e78ce74b5f
commit
60832fee27
2 changed files with 9 additions and 10 deletions
|
@ -182,6 +182,7 @@ class SecondaryToolbar {
|
|||
this.#updateUIState();
|
||||
|
||||
// Reset the Scroll/Spread buttons too, since they're document specific.
|
||||
this.eventBus.dispatch("switchcursortool", { source: this, reset: true });
|
||||
this.#scrollModeChanged({ mode: ScrollMode.VERTICAL });
|
||||
this.#spreadModeChanged({ mode: SpreadMode.NONE });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue