Fix scrollIntoView for PDF highlights (#5723)

GitOrigin-RevId: c2196ca3e3eed14a48b827a27a13f13232bb4c00
This commit is contained in:
Miguel Serrano 2021-11-08 12:15:33 +01:00 committed by Copybot
parent 8b85ef36eb
commit 83e0a0c29b

View file

@ -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',
})