mirror of
https://github.com/stablyai/orca
synced 2026-04-21 14:17:16 +00:00
fix: remove smooth scroll animation on settings section navigation
This commit is contained in:
parent
6767157fe0
commit
a25fab66eb
1 changed files with 2 additions and 2 deletions
|
|
@ -318,7 +318,7 @@ function Settings(): React.JSX.Element {
|
|||
|
||||
if (scrollTargetId && pendingNavSectionId && visibleIds.has(pendingNavSectionId)) {
|
||||
const target = document.getElementById(scrollTargetId)
|
||||
target?.scrollIntoView({ behavior: 'smooth', block: 'start' })
|
||||
target?.scrollIntoView({ block: 'start' })
|
||||
setActiveSectionId(pendingNavSectionId)
|
||||
pendingNavSectionRef.current = null
|
||||
pendingScrollTargetRef.current = null
|
||||
|
|
@ -385,7 +385,7 @@ function Settings(): React.JSX.Element {
|
|||
if (!target) {
|
||||
return
|
||||
}
|
||||
target.scrollIntoView({ behavior: 'smooth', block: 'start' })
|
||||
target.scrollIntoView({ block: 'start' })
|
||||
setActiveSectionId(sectionId)
|
||||
}, [])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue