-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Scroll inertia cancel [framework] #106891
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
Conversation
e840a4c to
ccd259b
Compare
|
(Triage): Looks like the Engine PR has been submitted, does this one need to be rebased to pick up the engine changes and make the tests happy? |
|
This one needs to be merged after flutter/engine#34537 is rolled in. flutter/engine#34537 was waiting for another prerequisite, but should be now ready. Let's get flutter/engine#34537 merged first. |
dkwingsmt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally okay except for a few questions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just record the exact result (and possibly remove the first try)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's dependent on exact scroll friction calculation. I hadn't recorded the exact result since I am working on some related change (the scroll friction right now has been tuned for touch, it causes much more momentum than native trackpad scrolling apps). But I can change it to the exact result now and change again later.
dkwingsmt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we don't need the first try any more, since we no longer need the distance to compare with?
It's expected behaviour on some platforms that scroll inertia/momentum animations will stop when a finger is rested on the trackpad. This PR reacts to a new kind of pointer signal event (
PointerSignalKind.scrollInertiaCancel) to convey that message.Framework prep PR: #106906
Engine PR [1/4]: flutter/engine#34402
Part of #106979
Pre-launch Checklist
///).