emacs-diffs
[Top][All Lists]
Advanced

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

master f9d518b: Make precision scrolling also work on various bars


From: Po Lu
Subject: master f9d518b: Make precision scrolling also work on various bars
Date: Thu, 23 Dec 2021 08:36:29 -0500 (EST)

branch: master
commit f9d518bc2f333e03d5e7c4e935b08fbe19f33c5b
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Make precision scrolling also work on various bars
    
    * lisp/pixel-scroll.el (pixel-scroll-precision-mode-map):
    Define keys for various kinds of bars.
---
 lisp/pixel-scroll.el | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/lisp/pixel-scroll.el b/lisp/pixel-scroll.el
index 975c513..d3b4500 100644
--- a/lisp/pixel-scroll.el
+++ b/lisp/pixel-scroll.el
@@ -99,6 +99,15 @@ is always with pixel resolution.")
     (define-key map [wheel-down] #'pixel-scroll-precision)
     (define-key map [wheel-up] #'pixel-scroll-precision)
     (define-key map [touch-end] #'pixel-scroll-start-momentum)
+    (define-key map [mode-line wheel-down] #'pixel-scroll-precision)
+    (define-key map [mode-line wheel-up] #'pixel-scroll-precision)
+    (define-key map [mode-line touch-end] #'pixel-scroll-start-momentum)
+    (define-key map [header-line wheel-down] #'pixel-scroll-precision)
+    (define-key map [header-line wheel-up] #'pixel-scroll-precision)
+    (define-key map [header-line touch-end] #'pixel-scroll-start-momentum)
+    (define-key map [vertical-scroll-bar wheel-down] #'pixel-scroll-precision)
+    (define-key map [vertical-scroll-bar wheel-up] #'pixel-scroll-precision)
+    (define-key map [vertical-scroll-bar touch-end] 
#'pixel-scroll-start-momentum)
     map)
   "The key map used by `pixel-scroll-precision-mode'.")
 



reply via email to

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