Repository navigation
Description
OS
macOS 15.7.4 (24G517)
LinearMouse
v0.13.0 (works in v0.12.0)
Describe the bug
With a Logitech LIFT and an app-specific scheme mapping command + vertical scroll to zoom, holding Command and scrolling now zooms only once per scroll gesture. Scrolling further during the same gesture (including a long free-spin) does nothing, so zooming a PDF takes one gesture per step. In v0.12.0 the document kept zooming while the wheel was scrolling.
This appears to be a regression from #1414. ModifierActionsTransformer now sends .zoom through ScrollActionThrottle (300 ms leading-edge) and returns nil for events rejected by the throttle, so the remaining input inside the cooldown is discarded instead of being accumulated or queued. Unlike button mappings, .zoom does not use the distance policy (ScrollMovementAccumulator), so scroll distance no longer contributes to the zoom amount. The newly added momentum guard also suppresses momentum-phase input. For this wheel, a whole continuous gesture ends up producing a single zoom step. In v0.12.0, ModifierActionsTransformer emitted one synthesized shortcut per scroll event and had no throttle.
To reproduce
- Logitech LIFT (Bluetooth) with LinearMouse v0.13.0.
- Add this app-specific scheme for PDF Expert (
com.readdle.PDFExpert-Mac):
{
"if": {
"app": "com.readdle.PDFExpert-Mac",
"device": {
"category": "mouse",
"productID": "0xb031",
"productName": "LIFT",
"vendorID": "0x46d"
}
},
"scrolling": {
"modifiers": {
"vertical": {
"command": { "type": "zoom" },
"shift": { "type": "alterOrientation" }
}
},
"speed": { "vertical": 0 }
}
}- Open a PDF, hold Command, and scroll/spin the wheel continuously.
- v0.13.0: it zooms one step and then stops for the rest of the gesture. v0.12.0: it keeps zooming in proportion to the scroll.
The same behavior is observable in any app that accepts ⌘+/⌘−, not only PDF Expert. No Logi Options+ is running.
Expected behavior
A single continuous gesture should behave like v0.12.0: either emit one shortcut per scroll event, or scale the number of steps with accumulated scroll distance (similar to the .distance policy used by scroll-button mappings). It should not collapse the gesture into a single step.
Anything else?
- Workaround: switching the action to
pinchZoomrestores continuous, distance-proportional zoom in PDF Expert (confirmed), but pinch gestures are not supported by every app, so this is not a general replacement forzoom. - Possible fixes: route modifier zoom through
ScrollActionRecognizer's.distancepolicy; keep the remainder across the 300 ms cooldown and emit the accumulated steps; exempt modifier zoom from the discrete-action throttle; or make the throttle configurable. - Code references:
LinearMouse/EventTransformer/ModifierActionsTransformer.swift(.zoombranch,scrollThrottle.allowsAction),LinearMouse/EventTransformer/ScrollActionThrottle.swift(300 ms), PR Throttle scroll-triggered actions #1414. - Related: Smooth zoom #1244 (smooth zoom), and Cannot get how zooming should works #1077 (same symptom caused by another scroll utility; here no such utility is running).
Activity
Keep zooming while scrolling with a modifier key (linearmouse#1522)