forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweak the math in ScrollOffsetAnimationCurve::UpdateTarget.
The existing division-by-0 guard was not correct, since MaximumDimension can return negative values. This led to occasional wild jumps when scrolling up and down quickly (because new_velocity had the wrong sign). This patch addresses the sign issue and improves handling of cases where we have a large current velocity and a small delta to the new target. BUG=575 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1553603003 Cr-Commit-Position: refs/heads/master@{#367200}
- Loading branch information
1 parent
450f237
commit a78fdc9
Showing
2 changed files
with
64 additions
and
62 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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