[Top][All Lists]

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

Smoother macOS touchpad scrolling

From: Alan Third
Subject: Smoother macOS touchpad scrolling
Date: Fri, 8 Sep 2017 19:46:34 +0100
User-agent: Mutt/1.7.2 (2016-11-26)

Attached is a patch to provide smoother scrolling with the touchpad on
macOS. It adds up the scrolling deltas and only sends a scroll event
when the total exceeds the frame’s default line‐height.

Scrolling quickly sometimes results in the screen stuttering a little.
I’m not sure if that’s just a result of scrolling quickly, or because
my code sends one scroll event for each line it wants to scroll and it
overloads Emacs redisplay or something.

Does anyone know if there’s a way, in C, to detect if we’re at the top
or bottom of the buffer? I’d rather not send momentum scroll events if
the buffer isn’t going to scroll.
Alan Third

Attachment: 0001-Provide-smoother-touchpad-scrolling-on-macOS.patch
Description: Text document

reply via email to

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