fix(pdf): goto highlight not work sometimes

pull/2942/head
charlie 2021-10-09 21:35:25 +08:00 committed by Tienson Qin
parent 534cb13f52
commit d3b477309f
1 changed files with 4 additions and 0 deletions

View File

@ -891,6 +891,10 @@
}
}
if (parent && parent.classList.contains('pdfViewer')) {
parent = parent.parentElement
}
parent.scrollTop = offsetY
}