Visitar URL original
Get rid of unnecessary scrollend events when keyboard scrolling by chromium-wpt-export-bot · Pull Request #38003 · web-platform-tests/wpt · GitHub
Skip to content

Get rid of unnecessary scrollend events when keyboard scrolling - #38003

Open
chromium-wpt-export-bot wants to merge 1 commit into
masterfrom
chromium-export-cl-4168692
Open

chromium-wpt-export-bot wants to merge 1 commit into
masterfrom
chromium-export-cl-4168692

Conversation

@chromium-wpt-export-bot

@chromium-wpt-export-bot chromium-wpt-export-bot commented Jan 16, 2023 •

Copy link
Copy Markdown
Collaborator

When calling ScrollAnimator::UserScroll, if previous animation
for updating scroll offset is still running, don't call the
on_finish_ callback yet, drop it instead. This way if user
keeps scrolling and is not done yet, they will receive scrollend
once only at the end, not after each keydown event for example.

Bug:1400445
Change-Id: Id60b57c18fdf15aa42c0e6e6371d7981949a5b6b
Reviewed-on: https://chromium-review.googlesource.com/4168692
WPT-Export-Revision: b9e1ad286a554238804a36d1925cb7fd704c8c53

@wpt-pr-bot wpt-pr-bot left a comment

Copy link
Copy Markdown
Collaborator

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.

When calling ScrollAnimator::UserScroll, if previous animation
for updating scroll offset is still running, don't call the
on_finish_ callback yet, drop it instead. This way if user
keeps scrolling and is not done yet, they will receive scrollend
once only at the end, not after each keydown event for example.

Bug:1400445
Change-Id: Id60b57c18fdf15aa42c0e6e6371d7981949a5b6b

This branch has not been deployed

No deployments
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.

3 participants