Add some heuristics to disable scroll anchoring in pathological cases.
Categories
(Core :: Layout: Scrolling and Overflow, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox72 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
The idea of these are not to penalize legit uses of scroll anchoring, and catching pathological cases fast.
The current algorithm I thought of is just whether the average of all the consecutive scroll anchoring adjustments is less than a given threshold.
If the average adjustment is close to zero and the user is not scrolling, it means that we're not making much progress.
Exact number may need tuning, let me know if you want it nightly-and-early-beta-only for now or something.
Assignee | ||
Comment 1•5 years ago
|
||
The idea of these are not to penalize legit uses of scroll anchoring, and
catching pathological cases fast.
The current algorithm I thought of is just whether the average of all the
consecutive scroll anchoring adjustments is less than a given threshold.
If the average adjustment is close to zero and the user is not scrolling, it
means that we're not making much progress.
It is important that zero adjustments don't get counted, since those are common
during window resizes and don't have side-effects anyway.
Exact number may need tuning, let me know if you want it
nightly-and-early-beta-only for now or something.
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Updated•5 years ago
|
Comment 5•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/49e2e43d3252
https://hg.mozilla.org/mozilla-central/rev/b757148cddfd
https://hg.mozilla.org/mozilla-central/rev/08338f14d554
Updated•5 years ago
|
Description
•