mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-25 08:27:19 +02:00
Don't expand/collapse the entire outline when shift-clicking on the triangles (PR 20508 follow-up)
This commit is contained in:
parent
17a4d2e123
commit
b07d14c88c
@ -131,7 +131,7 @@ class BaseTreeViewer {
|
|||||||
target.classList.toggle("treeItemsHidden");
|
target.classList.toggle("treeItemsHidden");
|
||||||
if (e.shiftKey) {
|
if (e.shiftKey) {
|
||||||
const shouldShowAll = !target.classList.contains("treeItemsHidden");
|
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