mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-06-10 12:11:12 +02:00
Merge pull request #20740 from Snuffleupagus/tree-viewer-shift-toggle
Don't expand/collapse the entire outline when shift-clicking on the triangles (PR 20508 follow-up)
This commit is contained in:
commit
3ae6cdc7c2
@ -131,7 +131,7 @@ class BaseTreeViewer {
|
||||
target.classList.toggle("treeItemsHidden");
|
||||
if (e.shiftKey) {
|
||||
const shouldShowAll = !target.classList.contains("treeItemsHidden");
|
||||
this._toggleTreeItem(this.container, shouldShowAll);
|
||||
this._toggleTreeItem(target.parentNode, shouldShowAll);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user