One of the troubling drawbacks of Emacs is its strangely broken OSX inertial scroll mechanism. After multiple digging, the real problem is that Emacs only registers the keys to scroll the mouse wheel in one, two or three increments, that is, wheel-up|down , double-wheel-up|down and triple-wheel-up|down .
However, with faster scrolling, the Mac trackpad generates much larger scroll increments. So, is there a way to generate more accurate scrolling messages that actually reflect the amount of scrollpad scroll?
I am running Emacs 24.0.92 from http://emacsformacosx.com/ .
Relevant .emacs settings:
(setq redisplay-dont-pause t) (setq mouse-wheel-progressive-speed nil)
Ultimately, I would like it to be like this:
(defun up-single () (interactive) (scroll-up 1)) (defun up-double () (interactive) (scroll-up 2)) (defun up-triple () (interactive) (scroll-up 3)) ... (global-set-key [wheel-down] 'up-single) (global-set-key [double-wheel-down] 'up-double) (global-set-key [triple-wheel-down] 'up-triple) ...
source share