A Roundup of scrollIntoView Method Bugs in iOS Safari
- Summary: Safari does not support all of the scrollIntoView options
- reference: https://caniuse.com/?search=scrollIntoView
- Tested on Safari 13 and 14
- List of bugs
- The behavior: ‘smooth’ option is not supported
- Symptom: Scrolling does not work
- Solution: Use behavior: ‘auto’
- An officially known bug
- inline: ‘nearest’ behaves abnormally on horizontal scroll
- Symptom: When triggering the scrollIntoView method on one of three or more elements, you cannot scroll to an element located in the middle (positioned between other elements)
- Solution: Use inline: ‘end’
- An undocumented bug
- The behavior: ‘smooth’ option is not supported
20210729
Leave a comment