VOOZH about

URL: https://phabricator.services.mozilla.com/D298803

⇱ ⚙ D298803 Bug 2037367 - [Cocoa] Report buttons correctly while pointer is locked with native API;


Bug 2037367 - [Cocoa] Report buttons correctly while pointer is locked with native API;
ClosedPublic

Authored by edgar on May 6 2026, 12:03 PM.
Referenced Files
Unknown Object (File)
Mon, Jun 8, 6:06 PM
Unknown Object (File)
Wed, Jun 3, 1:34 PM
Unknown Object (File)
Wed, Jun 3, 10:16 AM
Unknown Object (File)
Wed, Jun 3, 6:37 AM
Unknown Object (File)
Wed, Jun 3, 4:42 AM
Unknown Object (File)
Wed, Jun 3, 2:26 AM
Unknown Object (File)
Sat, May 30, 10:50 PM
Unknown Object (File)
Tue, May 26, 10:00 PM
Subscribers

Diff Detail

Event Timeline

phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.
edgar retitled this revision from Bug 2037356 - [Cocoa] Report buttons correctly while pointer is locked with native API; to Bug 2037367 - [Cocoa] Report buttons correctly while pointer is locked with native API;.
edgar changed the Bugzilla Bug ID from 2037356 to 2037367.
edgar added inline comments.
widget/cocoa/nsCocoaWindow.mm
2902

This is a bug, silly me.
Returning early here doesn’t actually stop the event from being dispatched.
My intention was to filter out zero movement, but we already report zero movement without using the native API while pointer lock.
So it should be fine to report zero movement.
We could try to reduce the event later in a followup if we want.

This revision is now accepted and ready to land.May 6 2026, 1:26 PM
Comment Actions

This revision requires a Testing Policy Project Tag to be set before landing. Please apply one of , , , , . Tip: this Firefox add-on makes it easy!

Comment Actions

testing-exception-other: There is no good way to test platform API.

Revision Contents

PathSize
widget/
cocoa/
13 lines
CommitTreeParentsAuthorSummaryDate
ba9517421f8d259ba51a6606Edgar Chen
Bug 2037367 - [Cocoa] Report buttons correctly while pointer is locked with… (Show More…)

Diff 1267822

widget/cocoa/nsCocoaWindow.mm

Loading...