linkedin / linkedin/self-focused
window.scrollTo doesn't work after focus is set on Safari 12
Open
@sarbbottam is already working on this.
Since Jan 12, 2019.
- Dominant language
- JavaScript
- Stars
- 35
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
On Safari 12 (and later), after focus is set in `focus-manager.js`'s `_setFocus()`, `window.scrollTo(scrollX, scrollY)` doesn't seem to work. This causes a page to scroll down to the focused element even when scrollY is 0.
A similar issue has been reported on stackoverflow: https://stackoverflow.com/questions/52652469/prevent-safari-from-automatically-scrolling-to-focused-element-scrollback-techn
Thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.