Skip to content

Remove the Safari/Firefox carve-out from three-finger horizontal swipes - #70

Open
Hariketsu wants to merge 1 commit into
nweii:mainfrom
Hariketsu:fix/three-finger-swipe-browser-carveout
Open

Remove the Safari/Firefox carve-out from three-finger horizontal swipes#70
Hariketsu wants to merge 1 commit into
nweii:mainfrom
Hariketsu:fix/three-finger-swipe-browser-carveout

Conversation

@Hariketsu

@Hariketsu Hariketsu commented Aug 26, 2026

Copy link
Copy Markdown

Closes #69.

A bound three-finger-swipe-left or three-finger-swipe-right never dispatched with the pointer over a Safari or Firefox window.

Cause

gestureTrackpadSwipeThreeFingers gated horizontal dispatch on the application under the pointer, skipping Safari and Firefox. The check dates from Jitouch, when both browsers navigated history with a three-finger swipe; they have used two fingers for years, so the gate only swallowed configured bindings.

Fix

Delete the gate in both horizontal branches. Dispatch is now identical in all four directions. axuiUnderMouse()/nameOfAxui() remain in use elsewhere. A user who wants the old behavior can scope "off" bindings per application, which the configuration model already supports.

Checks

./scripts/build.sh is clean and ./scripts/check.sh passes (25 units).

Verified by hand on macOS 15.7.9: with all four directions bound globally, horizontal swipes dispatch with the pointer over Firefox and Safari windows, and vertical swipes are unchanged.

gestureTrackpadSwipeThreeFingers dropped Three-Swipe-Left/Right
whenever the element under the pointer belonged to Safari or
Firefox, preserving a history-navigation gesture both browsers
replaced with a two-finger swipe years ago. The check only
swallowed configured bindings; vertical swipes were never gated.
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.

Three-finger horizontal swipes never dispatch over Safari or Firefox

1 participant