summaryrefslogtreecommitdiff
path: root/lisp/mwheel.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/mwheel.el')
-rw-r--r--lisp/mwheel.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/mwheel.el b/lisp/mwheel.el
index c505833502a..f88b2e86503 100644
--- a/lisp/mwheel.el
+++ b/lisp/mwheel.el
@@ -246,6 +246,8 @@ This should only be bound to mouse buttons 4 and 5."
(run-with-timer mouse-wheel-inhibit-click-time nil
'mwheel-inhibit-click-timeout))))
+(add-to-list 'scroll-preserve-screen-position-commands 'mwheel-scroll)
+
(defvar mwheel-installed-bindings nil)
;; preloaded ;;;###autoload