mirror of https://github.com/logseq/logseq
fix(pdf): goto highlight not work sometimes
parent
534cb13f52
commit
d3b477309f
|
@ -891,6 +891,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
if (parent && parent.classList.contains('pdfViewer')) {
|
||||
parent = parent.parentElement
|
||||
}
|
||||
|
||||
parent.scrollTop = offsetY
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue