mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 10:10:08 +02:00
Fix scrollIntoView for PDF highlights (#5723)
GitOrigin-RevId: c2196ca3e3eed14a48b827a27a13f13232bb4c00
This commit is contained in:
@@ -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',
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user