Variable: mouse-wheel-click-event
mouse-wheel-click-event is a customizable variable defined in
mwheel.el.gz.
Value
mouse-2
Documentation
Event that should be temporarily inhibited after mouse scrolling.
The mouse wheel is typically on the mouse-2 button, so it may easily happen that text is accidentally yanked into the buffer when scrolling with the mouse wheel. To prevent that, this variable can be set to the event sent when clicking on the mouse wheel button.
Probably introduced at or before Emacs version 22.1.
Source Code
;; Defined in /usr/src/emacs/lisp/mwheel.el.gz
(defcustom mouse-wheel-click-event 'mouse-2
"Event that should be temporarily inhibited after mouse scrolling.
The mouse wheel is typically on the mouse-2 button, so it may easily
happen that text is accidentally yanked into the buffer when
scrolling with the mouse wheel. To prevent that, this variable can be
set to the event sent when clicking on the mouse wheel button."
:group 'mouse
:type 'symbol
:set 'mouse-wheel-change-button)