-
Notifications
You must be signed in to change notification settings - Fork 6k
Win32 trackpad gestures #31594
Win32 trackpad gestures #31594
Conversation
216376c to
1075d27
Compare
justinmc
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.
This looks good to me, but @cbracken could you take a quick skim through this PR just for C++ style?
Also, is there anyone with a Windows machine with a trackpad that can confirm that this works and feels natural? Maybe @gspencergoog.
| // DirectManipulation provides updates with very high precision. If the user | ||
| // holds their fingers steady on a trackpad, DirectManipulation sends | ||
| // jittery updates. This calculation will reduce the precision of the scale | ||
| // value of the event to avoid jitter |
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.
@moffatman What kind of machine have you tested this on? I'm wondering the feel will vary by device.
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.
@justinmc Tested on desktop with apple trackpad + precision drivers. I believe it will only work on relatively recent devices. I could not find any way to get usable gesture data from a laptop with synaptics trackpad (since the driver injects fake events to simulate scroll momentum). The best bet for it to work would probably be MS Surface line.
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.
CC @gspencergoog, who I believe has a Surface set up?
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.
Mostly minor stuff.
| return S_OK; | ||
| } | ||
| if (!resetting_) { | ||
| // DirectManipulation provides updates with very high precision. If the user |
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.
Have we tested this part yet?
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.
Added a test for it
21e93c2 to
b47f951
Compare
023cb48 to
b8af034
Compare
|
@cbracken Can you take another look? |
b8af034 to
071c5ba
Compare
071c5ba to
fbfe4d9
Compare
cbracken
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.
Agh sorry about the delay here; this slipped off my radar. Thanks for the explanation on the timer. lgtm!
|
This pull request is not suitable for automatic merging in its current state.
|
|
Strangely there are some compiling issues. Can you take a look? @moffatman |
Start sending PointerPanZoom events from Windows (win32) when trackpad is used
Fixes flutter/flutter#23604
Pre-launch Checklist
writing and running engine tests.
///).