mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Fix scrollIntoView for PDF highlights (#5723)
GitOrigin-RevId: c2196ca3e3eed14a48b827a27a13f13232bb4c00
This commit is contained in:
parent
8b85ef36eb
commit
83e0a0c29b
1 changed files with 2 additions and 2 deletions
|
@ -181,8 +181,8 @@ function PdfJsViewer({ url }) {
|
|||
|
||||
// scroll to the first highlighted element
|
||||
elements[0]?.scrollIntoView({
|
||||
block: 'start',
|
||||
inline: 'nearest',
|
||||
block: 'nearest',
|
||||
inline: 'start',
|
||||
behavior: 'smooth',
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue