emacs-devel
[Top][All Lists]
Advanced

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

Re: Pixel scrolling support


From: Michael Heerdegen
Subject: Re: Pixel scrolling support
Date: Wed, 18 May 2022 04:53:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Po Lu <luangruo@yahoo.com> writes:

> I would like to install the following file: [...]

I like the new pixel-scroll-precision-mode very much! - but there is a
problem with it:

#+begin_src emacs-lisp
(define-minor-mode pixel-scroll-precision-mode
  "Toggle pixel scrolling.
When enabled, this minor mode allows to scroll the display
precisely, according to the turning of the mouse wheel."
  :global t
  :group 'mouse
  :keymap pixel-scroll-precision-mode-map
  ...)
#+end_src

This overwrites the mwheel bindings in any buffer with pixel-scroll
functions, and since it's a minor-mode, it wins over major-mode
bindings.

For example, osm.el (in Gnu Elpa) uses the mouse wheel to zoom the map.
Since `pixel-scroll-precision-mode' is a global minor mode, it is not
even trivial to work around this problem in one's config.

TIA,

Michael.



reply via email to

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