ampproject / ampproject/amphtml

scrollTo() does not work while page is scrolling

Open
#17,440 4 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.