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: Fri, 26 Nov 2021 14:23:39 +0200

> From: Po Lu <luangruo@yahoo.com>
> Cc: rpluim@gmail.com,  emacs-devel@gnu.org
> Date: Fri, 26 Nov 2021 20:05:00 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Btw, I have a general question regarding this "pixel-resolution"
> > scrolling support:
> 
> > With mwheel.el, Emacs users can configure the meaning of each scroll
> > event in terms of text lines, via the mouse-wheel-scroll-amount
> > variable.  But with this new mode, there's no such user control: the
> > conversion of the scroll amount reported by the wheel event to pixels
> > is either hard-coded in our code, or (on NS) determined by the OS.
> > Does it strike someone as "un-Emacsy"?
> 
> It seems OK to me, but we could perhaps have customizations for that.
> 
> The problem is that I don't see how such a customization could be
> implemented on platforms such as NS, or in the future, the PGTK port.

It's simple: we could provide a variable to scale the pixels
calculated by the *term code.

> > So maybe we should make x-coalesce-scroll-events and internal
> > variable, and say so in its doc string, because it should only be set
> > by this mode and its ilk, which do pay attention to the pixel deltas?
> 
> I could imagine some user customizations making use of it, but I have no
> objection to making it an internal variable.

I'd be interested to hear opinions of Lars and others about this.



reply via email to

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