mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-25 07:28:20 +00:00
Remove XEmacs compat code from mwheel.el
* lisp/mwheel.el (mwheel-event-button, mwheel-event-window): Remove XEmacs compat code.
This commit is contained in:
parent
43091e6c50
commit
8b36ebc950
@ -162,23 +162,18 @@ Also see `mouse-wheel-tilt-scroll'."
|
||||
:type 'boolean
|
||||
:version "26.1")
|
||||
|
||||
(eval-and-compile
|
||||
(if (fboundp 'event-button)
|
||||
(fset 'mwheel-event-button 'event-button)
|
||||
(defun mwheel-event-button (event)
|
||||
(let ((x (event-basic-type event)))
|
||||
;; Map mouse-wheel events to appropriate buttons
|
||||
(if (eq 'mouse-wheel x)
|
||||
(let ((amount (car (cdr (cdr (cdr event))))))
|
||||
(if (< amount 0)
|
||||
mouse-wheel-up-event
|
||||
mouse-wheel-down-event))
|
||||
x))))
|
||||
(defun mwheel-event-button (event)
|
||||
(let ((x (event-basic-type event)))
|
||||
;; Map mouse-wheel events to appropriate buttons
|
||||
(if (eq 'mouse-wheel x)
|
||||
(let ((amount (car (cdr (cdr (cdr event))))))
|
||||
(if (< amount 0)
|
||||
mouse-wheel-up-event
|
||||
mouse-wheel-down-event))
|
||||
x)))
|
||||
|
||||
(if (fboundp 'event-window)
|
||||
(fset 'mwheel-event-window 'event-window)
|
||||
(defun mwheel-event-window (event)
|
||||
(posn-window (event-start event)))))
|
||||
(defun mwheel-event-window (event)
|
||||
(posn-window (event-start event)))
|
||||
|
||||
(defvar mwheel-inhibit-click-event-timer nil
|
||||
"Timer running while mouse wheel click event is inhibited.")
|
||||
|
Loading…
Reference in New Issue
Block a user