Open Bug 2028300 Opened 8 months ago Updated 12 days ago

Smooth programatic scroll isn't interrupted by a subsequent instant programatic scroll

Categories

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

defect

Tracking

()

Tracking Status
firefox-esr115 --- unaffected
firefox-esr140 --- unaffected
firefox149 --- wontfix
firefox150 --- wontfix
firefox151 --- wontfix

People

(Reporter: hiro, Assigned: botond)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Attached file A test case —

STR;

  1. Open the attachment

There are two programatic scroll operations, a smooth scrollTo and an instant scrollBy. The latter should clobber the former one, but it doesn't.

We need to return false from SmoothScrollAnimation::HandleScrollOffsetUpdate, something like;

    if (mKind == ScrollAnimationKind::SmoothMsd ||
        mKind == ScrollAnimationKind::Smooth) {
      return false;
    }

I found this while I was exploring the other approach to fix bug 2009679.

Set release status flags based on info from the regressing bug 1982476

:botond, since you are the author of the regressor, bug 1982476, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

(In reply to Hiroyuki Ikezoe (:hiro) from comment #0)

We need to return false from SmoothScrollAnimation::HandleScrollOffsetUpdate, something like;

    if (mKind == ScrollAnimationKind::SmoothMsd ||
        mKind == ScrollAnimationKind::Smooth) {
      return false;
    }

This would be an overkill in the case of keyboard scrolling triggered on the main-thread since the keyboard scrolling would trigger a Smooth animation.

Good catch! I must have overlooked this when working on bug 1982476 since HandleScrollOffsetUpdate was a method which SmoothMsdScrollAnimation didn't override but SmoothScrollAnimation did.

I'm going to mark this as P3 for now, but can adjust if this is blocking something (like bug 20069679).

Assignee: nobody → botond
Severity: -- → S3
Flags: needinfo?(botond)
Priority: -- → P3
See Also: → 2090178
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: