]> git.eshelyaron.com Git - emacs.git/commit
Provide native touchpad scrolling on macOS
authorAlan Third <alan@idiocy.org>
Fri, 8 Sep 2017 18:26:47 +0000 (19:26 +0100)
committerAlan Third <alan@idiocy.org>
Tue, 19 Sep 2017 19:08:51 +0000 (20:08 +0100)
commita5fec62b519ae8c0a6528366ac8b71cd0c7ac52e
treef9b300285aacb4df9995ea5e4559663f2afee735
parent7b3d1c6beb54ef6c423a93df88aebfd6fecbe2c2
Provide native touchpad scrolling on macOS

* etc/NEWS: Describe changes.
* lisp/term/ns-win.el (mouse-wheel-scroll-amount,
mouse-wheel-progressive-speed): Set to smarter values for macOS
touchpads.
* src/nsterm.m (emacsView::mouseDown): Use precise scrolling deltas to
calculate scrolling for touchpads and mouse wheels.
(syms_of_nsterm): Add variables 'ns-use-system-mwheel-acceleration',
'ns-touchpad-scroll-line-height' and 'ns-touchpad-use-momentum'.
* src/keyboard.c (make_lispy_event): Pass on .arg when relevant.
* src/termhooks.h (event_kind): Update comments re. WHEEL_EVENT.
* lisp/mwheel.el (mwheel-scroll): Use line count.
* lisp/subr.el (event-line-count): New function.
etc/NEWS
lisp/mwheel.el
lisp/subr.el
lisp/term/ns-win.el
src/keyboard.c
src/nsterm.m
src/termhooks.h