Closed
Bug 2038478
Opened 4 months ago
Closed 4 months ago
Update the new snap target ids properly even if the destination is unchanged in SmoothScrollTo
Categories
(Core :: Panning and Zooming, defect, P2)
Core
Panning and Zooming
Tracking
()
RESOLVED
FIXED
152 Branch
| Tracking | Status | |
|---|---|---|
| firefox152 | --- | fixed |
People
(Reporter: hiro, Assigned: hiro)
References
Details
Attachments
(1 file)
The code in question is:
if (ConvertDestinationToDelta(aDestination.mPosition) == ParentLayerPoint()) {
return;
}
If we have valid snap target ids, we need to use them for the next re-snapping opportunity.
This bug is one of the causes of test failures caused by D294084.
| Assignee | ||
Comment 1•4 months ago
|
||
When the destination passed to SmoothScrollTo is at the current scroll
position, the function returns early to avoid triggering a spurious
scrollend event. However, this also skips updating mLastSnapTargetIds,
so the snap target identifiers reported by the next CSSScrollSnapEvent
can be stale even though we just resolved to a snap target.
Move the destination's target IDs into mLastSnapTargetIds before the
early return so snap target tracking remains correct regardless of
whether the snap actually produces motion.
Updated•4 months ago
|
Assignee: nobody → hikezoe.birchill
Attachment #9584870 -
Attachment description: WIP: Bug 2038478 - Update mLastSnapTargetIds when SmoothScrollTo exits early without scrolling. r?botond → Bug 2038478 - Update mLastSnapTargetIds when SmoothScrollTo exits early without scrolling. r?botond
Status: NEW → ASSIGNED
Updated•4 months ago
|
Severity: -- → S3
Priority: -- → P2
Pushed by hikezoe.birchill@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/a539841db290
https://hg.mozilla.org/integration/autoland/rev/22d48c07f481
Update mLastSnapTargetIds when SmoothScrollTo exits early without scrolling. r=botond
Comment 3•4 months ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
status-firefox152:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
Updated•3 months ago
|
QA Whiteboard: [qa-triage-done-c153/b152]
You need to log in
before you can comment on or make changes to this bug.
Description
•