bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#51891: 29.0.50; [PATCH] Pixel delta support for wheel events on X


From: Po Lu
Subject: bug#51891: 29.0.50; [PATCH] Pixel delta support for wheel events on X
Date: Tue, 16 Nov 2021 20:38:03 +0800

I've implemented support for exposing the pixel delta of XInput 2 wheel
events to Lisp code.  With GC turned off, utilizing a modified
pixel-scroll.el with this support results in a quite pleasant
experience, but pixel-scroll still GCs too much to be useful.

Pixel based scrolling is a popular feature in modern X applications, and
does make life a lot easier in many cases.  The existing support is
inadequate as it cannot utilize the detailed delta information available
from modern touch-based scroll wheels, which this patch enables.

The XInput 2 support isn't the best from a code duplication POV, but the
behavior of the XInput 2 code often differs in subtle ways from that of
the Core Input code, and trying to combine the two together would result
in a more catastrophic mess than leaving them apart.

Obviously, here is the original XInput 2 support patch:

Attachment: 0001-Add-support-for-event-processing-via-XInput-2.patch
Description: Text Data

And here is the patch that exposes pixel deltas to Lisp:

Attachment: 0002-Expose-pixel-wise-wheel-events-to-Lisp.patch
Description: Text Data

WDYT?  Thanks.

reply via email to

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