Skip to content

Commit fa36b0d

Browse files
committed
Fix scroll randomly stopping on iOS
Scrollspy called window.scrollTo on every scroll. iOS kills momentum scroll on any programmatic window scroll. Removed it. Not needed: scrollIntoView with block 'nearest' never moves the window here.
1 parent a1558de commit fa36b0d

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

www/src/assets/hyperscript/scrollspy.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ behavior Scrollspy
77
set link to first <a[href='${hash}']/> in me
88
if link exists
99
set link's @aria-current to 'true'
10-
set pageY to window.scrollY
1110
call link.scrollIntoView({block: 'nearest', behavior: 'instant'})
12-
call window.scrollTo(0, pageY)
1311
end
1412
end
1513

0 commit comments

Comments
 (0)