Skip to content
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

fix: infer last pressed button in mouse move #10067

Merged
merged 1 commit into from Apr 24, 2023
Merged

Conversation

jrandolf
Copy link
Contributor

@jrandolf jrandolf commented Apr 24, 2023

A mouse move event requires the "last pressed" button. For example, see https://source.chromium.org/chromium/chromium/src/+/main:content/browser/renderer_host/input/synthetic_mouse_driver.cc;l=101;bpv=0;bpt=1 and https://source.chromium.org/chromium/chromium/src/+/refs/heads/main:content/browser/renderer_host/input/web_input_event_builders_mac.mm;drc=a61b95c63b0b75c1cfe872d9c8cdf927c226046e;bpv=1;bpt=1;l=221

More precisely, we need to use the mouse button with the lowest flag value. The reason is not clear, however it's assumed there is internal state that requires the mouse move event to match the latest pressed event.

@jrandolf jrandolf requested a review from OrKoN April 24, 2023 10:16
Copy link
Collaborator

@OrKoN OrKoN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like tests are failing?

@jrandolf jrandolf changed the title fix: use none for mouse move fix: infer last pressed button in mouse move Apr 24, 2023
@jrandolf jrandolf marked this pull request as ready for review April 24, 2023 10:45
@jrandolf jrandolf disabled auto-merge April 24, 2023 11:11
@jrandolf jrandolf merged commit a6eaac4 into main Apr 24, 2023
27 of 30 checks passed
@jrandolf jrandolf deleted the jrandolf/fix-mouse branch April 24, 2023 11:14
@release-please release-please bot mentioned this pull request Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants