Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1392361 - Fix zooming sensitivity on macOS #12203

Merged
merged 1 commit into from
Aug 16, 2020

Commits on Aug 12, 2020

  1. Bug 1392361 - Fix zooming sensitivity on macOS

    The original code would get a long sequence of miniscule "tick" values while
    pinch-zooming, and each tick value would cause a 1.1x zoom. So even the smallest
    pinch gesture on a trackpad would cause high amounts of zoom. This patch
    accumulates the wheel deltas until they reach an integer threshold (with a
    tweak of the scaling factor to make it feel more natural) at which point it
    triggers the zoom based on the integer component of the accumulated delta. The
    fractional part is retained in the accumulator.
    staktrace committed Aug 12, 2020
    Configuration menu
    Copy the full SHA
    213676b View commit details
    Browse the repository at this point in the history