Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gecko Bug 1833758] Add a pref not to reset max consecutive adjustment count during running APZ async scroll. #40293

Merged
merged 1 commit into from May 30, 2023

Conversation

moz-wptsync-bot
Copy link
Collaborator

With this pref we can avoid bug 1561450 without disabling any scroll adjustments
in scroll event handlers because in the specific case of the bug the scroll
adjustment in question is zero length such as

  element.style.display = "block";
  element.offsetTop // flush layout
  element.style.display = "none";

so it can be caught by our existing consecutive adjustment heuristic. Thus with
the default layout.css.scroll-anchoring.max-consecutive-adjustments value, as of
now it's 10, the case of bug 1561450 will stop firing scroll events after
5 (= 10/2) additional scroll event observations.

Differential Revision: https://phabricator.services.mozilla.com/D178898

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1833758
gecko-commit: 4adf1e46346688c72a6dbaeb5e965cfee658401b
gecko-reviewers: emilio

…ng APZ async scroll.

With this pref we can avoid bug 1561450 without disabling any scroll adjustments
in scroll event handlers because in the specific case of the bug the scroll
adjustment in question is zero length such as

```
  element.style.display = "block";
  element.offsetTop // flush layout
  element.style.display = "none";
```

so it can be caught by our existing consecutive adjustment heuristic. Thus with
the default layout.css.scroll-anchoring.max-consecutive-adjustments value, as of
now it's 10, the case of bug 1561450 will stop firing scroll events after
5 (= 10/2) additional scroll event observations.

Differential Revision: https://phabricator.services.mozilla.com/D178898

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1833758
gecko-commit: 4adf1e46346688c72a6dbaeb5e965cfee658401b
gecko-reviewers: emilio
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Firefox project.

@moz-wptsync-bot moz-wptsync-bot merged commit 7242916 into master May 30, 2023
19 checks passed
@moz-wptsync-bot moz-wptsync-bot deleted the gecko/1833758 branch May 30, 2023 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants