]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix indexing of mouse-wheel events
authorEli Zaretskii <eliz@gnu.org>
Sat, 3 Sep 2022 16:11:51 +0000 (19:11 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 3 Sep 2022 16:11:51 +0000 (19:11 +0300)
* doc/emacs/frames.texi (Mouse Commands): Add index entries for
wheel events.

doc/emacs/frames.texi

index d78cbffaa710223661f005531eb55898b37f1580..93a6cd70d3f925505eb8814836fd7fca1ad6ada5 100644 (file)
@@ -215,6 +215,10 @@ deactivating the mark.  @xref{Shift Selection}.
 @vindex mouse-wheel-follow-mouse
 @vindex mouse-wheel-scroll-amount
 @vindex mouse-wheel-progressive-speed
+@cindex wheel-up, a mouse event
+@cindex wheel-down, a mouse event
+@cindex wheel-left, a mouse event
+@cindex wheel-right, a mouse event
   Some mice have a ``wheel'' which can be used for scrolling.  Emacs
 supports scrolling windows with the mouse wheel, by default, on most
 graphical displays.  To toggle this feature, use @kbd{M-x
@@ -224,7 +228,11 @@ buffers are scrolled.  The variable
 @code{mouse-wheel-progressive-speed} determines whether the scroll
 speed is linked to how fast you move the wheel.  This mode also
 supports increasing or decreasing the font size, by default bound to
-scrolling with the @key{Ctrl} modifier.
+scrolling with the @key{Ctrl} modifier.  When this mode is enabled,
+mouse wheel produces special events like @code{wheel-up} and
+@code{wheel-down}.  (Some older systems report them as @code{mouse-4}
+and @code{mouse-5}.)  If the mouse has a horizontal scroll wheel, it
+produces @code{wheel-left} and @code{wheel-right} events as well..
 
 @vindex mouse-wheel-scroll-amount-horizontal
 Emacs also supports horizontal scrolling with the @key{Shift}