mirror of https://github.com/sveltejs/svelte
fix: robustify initial scroll value detection when scroll is smooth (#11802)
- the previous assumption was wrong: browser don't fire a scroll event initially when the scroll isn't smooth - the previous logic wasn't using the "is scrolling now" logic which meant the render effect fired immediately after, causing smooth scrolling to start too late to be overridden adjusted the comment and reused the scroll handler function to guard against the race condition fixes #11623pull/11808/head
parent
d1a14ef147
commit
ba6697d31d
@ -0,0 +1,5 @@
|
||||
---
|
||||
"svelte": patch
|
||||
---
|
||||
|
||||
fix: robustify initial scroll value detection when scroll is smooth
|
Loading…
Reference in new issue