fix(pdf): goto highlight not work sometimes

This commit is contained in:
charlie
2021-10-09 21:35:25 +08:00
committed by Tienson Qin
parent 534cb13f52
commit d3b477309f

View File

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