Scroll inertia cancel [framework]#106891
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.
Generally okay except for a few questions.
There was a problem hiding this comment.
Can we just record the exact result (and possibly remove the first try)?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
///).