Repository navigation
Add configurable trackpad gestures for the window under the pointer - #1905
Open
kiteretsu903 wants to merge 1 commit into
Open
kiteretsu903 wants to merge 1 commit into
kiteretsu903 wants to merge 1 commit into
Conversation
kiteretsu903
force-pushed
the
fix/review-trackpad-gestures
branch
2 times, most recently
from
October 10, 2026 02:51
958b019 to
a97877a
Compare
kiteretsu903
force-pushed
the
fix/review-trackpad-gestures
branch
from
October 14, 2026 01:31
a97877a to
b743aac
Compare
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.
Adds an off-by-default gesture input option with three- or four-finger swipes, adjustable sensitivity, and an action for each direction. Default mappings are left/right half, up to maximize, and down to minimize; individual directions can be disabled.
Behavior and boundaries
Implementation
Capture, recognition, target selection, and settings are grouped by responsibility. Recognized gestures dispatch through existing Rectangle actions rather than implementing another placement path. Layout Helper and divider code are not part of this change.
The multitouch integration uses a dynamically loaded private macOS API, loaded only while the feature is enabled. Unavailable input support must leave the feature inactive without preventing Rectangle from launching. This platform dependency is a review consideration beyond the recognizer logic.
Validation
The rebased branch passed all 597 XCTest tests, including upstream mouse-button shortcut and preview lifecycle tests. This branch has no dependency on the closed learned-size-limits PR #1902. A real three-finger hardware demonstration in the combined build confirmed left-half, maximize, right-half, and minimize actions with window animation and Layout Helper disabled.
This replaces the corresponding part of #1888.
Demo (the gesture pop-up is not part of rectangle but only in video)
08-trackpad-gestures.mp4
Window animation is disabled. Recorded with the combined build and only this feature and its required visual options enabled.
Settings