[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Smoother macOS touchpad scrolling

From: James Nguyen
Subject: Re: Smoother macOS touchpad scrolling
Date: Mon, 11 Sep 2017 18:54:14 -0700

It seemed to be laggier than when swiping up or down fast with the touchpad.

These settings work for me (before the patch) more smoothly than the patch 
(without applying the settings).

(setq scroll-margin 5
        scroll-step 1
        scroll-conservatively 10000
        scroll-preserve-screen-position 1)
  (setq mouse-wheel-scroll-amount (list (if (+desktop-p) 5 1)))
  (setq mouse-wheel-progressive-speed nil)
  (setq mouse-wheel-follow-mouse ’t)

+1 on pixel wise events. It’d be nice to scroll the window by pixel without 
display lag.

> On Sep 11, 2017, at 11:09 AM, Alan Third <address@hidden> wrote:
> On Sun, Sep 10, 2017 at 09:37:58AM +0100, Alan Third wrote:
>> How about instead of using the default font height, I provide a
>> variable that the user can use to set a ‘line height’ of their own
>> choosing? i.e. ‘(setq ns-touchpad-scroll-line-height 1)’ for one
>> pixel.
> Updated patch attached.
> I’ve modified mousewheel scrolling so it also makes use of macOS’s
> built‐in mousewheel acceleration. My thinking was that if we turn off
> Emacs progressive scrolling for touchpad, then mousewheels can feel
> awfully slow. ns-use-system-mwheel-acceleration allows you to turn it
> off if you don’t like the new behaviour, but it has no effect on
> touchpad scrolling.
> If anyone gives the patch a try, please let me know what you think.
> -- 
> Alan Third
> <0001-Provide-smoother-touchpad-scrolling-on-macOS.patch>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]