Closed Bug 1840025 Opened 2 years ago Closed 1 years ago

Use ScrollMode::Smooth in nsSliderFrame::PageScroll

Categories

(Core :: Panning and Zooming, task, P3)

task

Tracking

()

RESOLVED FIXED
119 Branch
Tracking Status
firefox119 --- fixed

People

(Reporter: botond, Assigned: botond)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

In bug 1331390, we used ScrollMode::SmoothMsd on this line even though the other codepath in that function uses ScrollMode::Smooth, to work around bug 1835600.

Now that bug 1835600 is fixed we should revert to using ScrollMode::Smooth. I originally tried to do this in https://phabricator.services.mozilla.com/D181420, but found that it regresses helper_scrollbartrack_click_overshoot.html on Mac only. There are indications that this is an issue with the test (details in bug 1835600 comment 7).

This bug tracks fixing the test issue and landing the change.

Relevant logs from an earlier Try push:

window.scrollMaxY = 19150
after first scrollend, window.scrollY = 834
after second scrollend, window.scrollY = 16003

Maybe three scrollends does the trick on Mac :)

The use of ScrollMode::SmoothMsd has caused a user-noticeable regression, bug 1851021.

While the failure of helper_scrollbartrack_click_overshoot.html with ScrollMode::Smooth on Mac remains to be investigated and fixed, since that failure seems to be a test issue, I'm inclined to say that fixing the regression is more important than preserving the test coverage from this test on one platform.

Therefore, I'll make the change while disabling the test for now, and file a follow-up for re-enabling the test.

Assignee: nobody → botond
Blocks: 1851423

This restores the scrolling physics used in PageScroll to what it was
before bug 1331390.

Pushed by bballo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b904d35c98f7 Use ScrollMode::Smooth in nsSliderFrame::PageScroll. r=rzvncj
Status: NEW → RESOLVED
Closed: 1 years ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
Duplicate of this bug: 1851021
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: