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

Don't enqueue a scroll event for clamping or anchoring scrolls if not changed. #20413

Merged
merged 1 commit into from Dec 4, 2019

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Nov 22, 2019

Other scroll types will still directly enqueue a scroll event.

Forced layouts may cause scroll offset changes that are undone
by later updates.

There is no spec that requires the current behavior as far as I can
tell. The CSSOM spec calls out that it should fire "when the viewport
or element is scrolled" [1]

[1] https://drafts.csswg.org/cssom-view/#eventdef-document-scroll

Bug: 988991

Change-Id: I4e4ebcf2c5bcba8111d73ebd0b2b8a037034caaa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1928243
Reviewed-by: Nick Burris <nburris@chromium.org>
Reviewed-by: David Bokan <bokan@chromium.org>
Commit-Queue: Chris Harrelson <chrishtr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#721247}

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 Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-1928243 branch 2 times, most recently from 6b2f215 to ee165c4 Compare December 2, 2019 23:25
@chromium-wpt-export-bot chromium-wpt-export-bot changed the title Only enqueue at most one scroll event per frame. Don't enqueue a scroll event if scroll offset didn't change. Dec 2, 2019
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-1928243 branch 2 times, most recently from ffe9b22 to ccf7405 Compare December 3, 2019 00:12
@chromium-wpt-export-bot chromium-wpt-export-bot changed the title Don't enqueue a scroll event if scroll offset didn't change. Don't enqueue a scroll event for clamping or anchoring scrolls if not changed. Dec 3, 2019
… changed.

Other scroll types will still directly enqueue a scroll event.

Forced layouts may cause scroll offset changes that are undone
by later updates.

There is no spec that requires the current behavior as far as I can
tell. The CSSOM spec calls out that it should fire "when the viewport
or element is scrolled" [1]

[1] https://drafts.csswg.org/cssom-view/#eventdef-document-scroll

Bug: 988991

Change-Id: I4e4ebcf2c5bcba8111d73ebd0b2b8a037034caaa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1928243
Reviewed-by: Nick Burris <nburris@chromium.org>
Reviewed-by: David Bokan <bokan@chromium.org>
Commit-Queue: Chris Harrelson <chrishtr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#721247}
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