emacs-devel
[Top][All Lists]
Advanced

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

Re: master e37eb7f: Add support for pixel wheel deltas on NS


From: Eli Zaretskii
Subject: Re: master e37eb7f: Add support for pixel wheel deltas on NS
Date: Sun, 28 Nov 2021 09:53:38 +0200

> From: Po Lu <luangruo@yahoo.com>
> Cc: rpluim@gmail.com,  emacs-devel@gnu.org
> Date: Sun, 28 Nov 2021 10:54:26 +0800
> 
> Po Lu <luangruo@yahoo.com> writes:
> 
> > Eli Zaretskii <eliz@gnu.org> writes:
> >
> >> It's simple: we could provide a variable to scale the pixels
> >> calculated by the *term code.
> >
> > Alternatively, how about putting such an option in the code that makes
> > use of such events, something like `pixel-scroll-precision-scale'.
> 
> diff --git a/lisp/pixel-scroll.el b/lisp/pixel-scroll.el
> index 888320cf1a..a14c211207 100644
> --- a/lisp/pixel-scroll.el
> +++ b/lisp/pixel-scroll.el
> @@ -100,6 +100,11 @@ pixel-scroll-precision-mode-map
>      map)
>    "The key map used by `pixel-scroll-precision-mode'.")
>  
> +(defcustom pixel-scroll-precision-scale 1.0
> +  "Value by which to multiply pixel deltas used in 
> `pixel-scroll-precision-mode'."
> +  :type 'float
> +  :group 'mouse)
> +

I think this factor should not be specific to pixel-scroll.el, it
should be applied by keyboard.c where it constructs the event, or
maybe by the *term.[cm] terminal-specific backends.



reply via email to

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