-
Notifications
You must be signed in to change notification settings - Fork 6k
Linux trackpad gestures #31592
Linux trackpad gestures #31592
Conversation
|
This pull request executed golden file tests, but it has not been updated in a while (20+ days). Test results from Gold expire after as many days, so this pull request will need to be updated with a fresh commit in order to get results from Gold. |
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 LGTM at a high level, but maybe @cbracken or @stuartmorgan should take a look too.
Also, I tried the Mac part on my Mac but I don't think I have a trackpad that I could connect to my Linux machine to try it there.
And @moffatman there seem to be legitimate test failures.
../../flutter/shell/platform/linux/fl_engine_test.cc:99: Failure
Expected equality of these values:
events[0].device_kind
Which is: 4
kFlutterPointerDeviceKindTouch
Which is: 2
855e2c2 to
794f8fe
Compare
|
For anyone trying to test this, you won't get trackpad gesture pan events if running via XWayland (scale/rotate work, but you'll get discrete scroll wheel events instead of pan). So make sure to clear $GDK_BACKEND if running from the VSCode terminal for example. Not sure where I should document this as it would be useful information for a flutter user. |
|
Looks like the fl_view changes are not tested? Is it because they're hard to test? |
|
It will take a bit of reorganization to test fl_view. And I think gtk needs to be started for anything to work. I will take a stab at it though, that stuff should be tested. |
|
Yeah, I suggest checking if you can:
In this way the FlView only handles the bare minimum work to connect Feel free to let me know if you'd like me to handle this part. :) |
794f8fe to
f848ac5
Compare
|
@dkwingsmt I think I have reorganized it like you described. Can you verify this is what you had in mind, if so I will add the comments and tests. |
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.
Yes, this is what I meant! :) Please go ahead on unit tests!
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.
Minor change requests
cca351e to
a71b165
Compare
robert-ancell
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.
Some small requests but otherwise looks pretty good, thanks!
fa3874f to
cfe0628
Compare
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
|
@robert-ancell Would you like to make a second review of this PR? |
8a644b4 to
cdfb4e3
Compare
robert-ancell
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.
Minor issue with the documentation but otherwise great, thanks!
Start sending PointerPanZoom events from Linux when trackpad is used
Fixes flutter/flutter#23604
Pre-launch Checklist
writing and running engine tests.
///).