Repository navigation
Get rid of unnecessary scrollend events when keyboard scrolling - #38003
Open
chromium-wpt-export-bot wants to merge 1 commit into
Open
chromium-wpt-export-bot wants to merge 1 commit into
chromium-wpt-export-bot wants to merge 1 commit into
Conversation
wpt-pr-bot
approved these changes
Jan 16, 2023
wpt-pr-bot
left a comment
Collaborator
There was a problem hiding this comment.
The review process for this patch is being conducted in the Chromium project.
chromium-wpt-export-bot
force-pushed
the
chromium-export-cl-4168692
branch
from
January 30, 2023 22:08
6a65e1e to
af70b7f
Compare
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
chromium-wpt-export-bot
force-pushed
the
chromium-export-cl-4168692
branch
from
January 30, 2023 22:54
af70b7f to
80c032b
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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