I'd like to enable changing the font size by holding down the right mouse button and using the scroll-wheel. Emacs does however treat mouse buttons as keys, so this obviously cannot be achieved directly by a straight-forward
(define-key ... (kbd ...) ...) binding.
Since I also don't want to disable the standard actions performed by "click and release" of the right mouse button, I can't just bind something to
<up/down-mouse-3>. Instead, I'd like to bind a command to the scroll events
<mouse-5>, that detects, whether the right mouse button is being held.
Is this possible?
Related questions point to the variable
track-mouse, but it doesn't seem, like that method can distinguish different mouse buttons.