Fix scrolling of search results in documents with marked content (bug 1714183)

This regressed in PR 13171, since the `span`s with the marked content identifiers interfere with scrolling of search results.
This commit is contained in:
Jonas Jenwald 2021-06-03 11:35:12 +02:00
parent 2a35b39c46
commit 29e6930bb6
2 changed files with 8 additions and 6 deletions

View file

@ -223,7 +223,7 @@ class PDFFindController {
top: MATCH_SCROLL_OFFSET_TOP,
left: MATCH_SCROLL_OFFSET_LEFT,
};
scrollIntoView(element, spot, /* skipOverflowHiddenElements = */ true);
scrollIntoView(element, spot, /* scrollMatches = */ true);
}
_reset() {