Fix complex_layout_android__scroll_smoothness by switching to using PointerEvent#66612
Fix complex_layout_android__scroll_smoothness by switching to using PointerEvent#66612dkwingsmt wants to merge 3 commits intoflutter:masterfrom
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
I'm sorry to directly commit to the PR.. I meant to make a comment with a commit suggestion but I did it wrong way. I fixed some bugs but it's still not working: Apart from that, I recommend to use |
|
Sure, that's why I LGTM'd your PR. |
|
@dkwingsmt : for local testing, you don't need the exact same device model (Moto G4) to reproduce the problem. Any device with 60hz refresh rate should do. If you only have high-end 90hz devices such as Pixel 4, simply check the 59hz input test result. |
Description
This PR fixes the issue that causes complex_layout_android__scroll_smoothness to not scroll at all by making it dispatch
PointerEventwithGestureBinding.handlePointerEvent, and moves the resampling inGestureBindingtohandlePointerEvent.Related Issues
Tests
I added the following tests:
Replace this with a list of the tests that you added as part of this PR. A change in behavior with no test covering it
will likely get reverted accidentally sooner or later. PRs must include tests for all changed/updated/fixed behaviors. See Test Coverage.
Checklist
Before you create this PR, confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]). This will ensure a smooth and quick review process.///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change
Did any tests fail when you ran them? Please read Handling breaking changes.