3 ms·
The smooth scrolling set by the "scroll-behavior" is not the same as the user initiated scrolling in iOS. It is scrolling behavior when triggered by a navigatio
by oplav 8y ago
The smooth scrolling set by the "scroll-behavior" is not the same as the user initiated scrolling in iOS. It is scrolling behavior when triggered by a navigation API [0].
If you go to the website in OP and click the table of contents in Chrome and then Safari, you'll see the difference.
[0] https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-beha...
- mikewhy 8y agoYep looks like it affects `scrollTo()` and `scrollIntoView()`, along with in-page navigation. Crazy how they don't let you use a curve to define your own timing.