ampproject / ampproject/amphtml
scrollTo() does not work while page is scrolling
Open
Component: Standard Actions
P3: When Possible
Stale
Type: Bug
Type: UX
WG: components
- Dominant language
- JavaScript
- Stars
- 14.9k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
If `scrollTo()` is called while page is scrolling (e.g. continuation of a momentum scroll), it does nothing.
Not a big deal but somewhat annoying.
related: #16860
Contributor guide
Research direction
No files, tests, or entry points are named. Start by reproducing the issue while a page is in a momentum scroll and trace the relevant scrolling implementation; done means scrollTo() takes effect when called during active scrolling, with a regression test covering that case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100