Repository navigation
Allow Logitech gesture buttons to preserve click fallback - #1211
Merged
lujjjh merged 1 commit intoMay 30, 2026
Merged
Conversation
Distinguish Logitech controls that are fully handled from gesture controls that should still emit their synthetic fallback click. This lets a Logitech gesture button behave like other mouse buttons: plain clicks fall through, while completed gestures suppress the click action.
Collaborator
|
Thanks! |
lujjjh
added a commit
that referenced
this pull request
Jun 19, 2026
## Summary Follow-up to #1211. When a Logitech control is used as a gesture button, defer its synthetic click fallback until release. This keeps normal tap/click behavior when no gesture is triggered, but suppresses the fallback click once a gesture has handled the control. ## Testing - `xcodebuild test -project LinearMouse.xcodeproj -scheme LinearMouse -only-testing:LinearMouseUnitTests/GestureButtonTransformerTests -only-testing:LinearMouseUnitTests/VendorSpecificDeviceMetadataTests`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Allow Logitech gesture-button controls to behave like regular mouse buttons when no gesture is detected.
Previously, Logitech virtual/gesture controls were treated as fully handled as soon as the gesture transformer saw them. That prevented the Logitech fallback synthetic click from being posted, so a configured gesture button could trigger gestures but would not preserve normal click behavior.
This changes Logitech control handling from a boolean handled/not-handled result to a small enum so handlers can distinguish between:
With this, a Logitech gesture button can:
Testing
xcodebuild test -project LinearMouse.xcodeproj -scheme LinearMouseswiftformat --linton changed Swift filesswiftlint --stricton changed non-legacy Swift files