pull/5022/merge
Aryaman1792 2 days ago committed by GitHub
commit 7635080d99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -269,11 +269,11 @@ export function scrollTo(hash: string, smooth = false, scrollPosition = 0) {
}
if (!target) return
const targetTop =
const targetTop ={
window.scrollY +
target.getBoundingClientRect().top -
getScrollOffset() +
Number.parseInt(window.getComputedStyle(target).paddingTop, 10) || 0
Number.parseInt(window.getComputedStyle(target).paddingTop, 10) }|| 0
const behavior = window.matchMedia('(prefers-reduced-motion)').matches
? 'instant'

Loading…
Cancel
Save