Bug 311227
| Summary: | [Scroll anchoring] Add a heuristic that disables scroll anchoring for frequent adjustments | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Simon Fraser (smfr) <simon.fraser> |
| Component: | Scrolling | Assignee: | Simon Fraser (smfr) <simon.fraser> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | simon.fraser, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Other | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=311235 | ||
Simon Fraser (smfr)
Some sites (e.g. depop.com) suffer from scroll position oscillations triggered by scroll anchoring. Such issues are easy to cause by accident by combining scroll position observation (e.g. via window.scrollY or Intersection Observer) and content changes. Gecko has a heuristic to disable anchoring in cases like this, so do something similar.
<rdar://173680821>
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Simon Fraser (smfr)
Pull request: https://github.com/WebKit/WebKit/pull/61797
EWS
Committed 310545@main (e1f2eaabdb5c): <https://commits.webkit.org/310545@main>
Reviewed commits have been landed. Closing PR #61797 and removing active labels.