Disable smooth navbar scrolling as it breaks on some platforms

This commit is contained in:
Tulir Asokan 2020-09-10 17:19:03 +03:00
parent e28540aba5
commit 32058373ff
1 changed files with 2 additions and 2 deletions

View File

@ -153,9 +153,9 @@ class App extends Component {
} }
} }
if (minXElem !== null) { if (minXElem !== null) {
minXElem.scrollIntoView({ inline: "start", behavior: "smooth" }) minXElem.scrollIntoView({ inline: "start" })
} else if (maxXElem !== null) { } else if (maxXElem !== null) {
maxXElem.scrollIntoView({ inline: "end", behavior: "instant" }) maxXElem.scrollIntoView({ inline: "end" })
} }
} }