Skip to content

v0.13.0: Command + scroll zoom fires only once per scroll gesture (300 ms throttle drops the rest) #1518

Closed

Description

@TinyuZhao

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

  1. Logitech LIFT (Bluetooth) with LinearMouse v0.13.0.
  2. 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 }
  }
}
  1. Open a PDF, hold Command, and scroll/spin the wheel continuously.
  2. 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 pinchZoom restores continuous, distance-proportional zoom in PDF Expert (confirmed), but pinch gestures are not supported by every app, so this is not a general replacement for zoom.
  • Possible fixes: route modifier zoom through ScrollActionRecognizer's .distance policy; 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 (.zoom branch, 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

  1. added a commit that references this issue on Nov 21, 2026
    ce42d18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions