aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorAlan Third2017-09-08 19:26:47 +0100
committerAlan Third2017-09-19 20:08:51 +0100
commita5fec62b519ae8c0a6528366ac8b71cd0c7ac52e (patch)
treef9b300285aacb4df9995ea5e4559663f2afee735 /etc
parent7b3d1c6beb54ef6c423a93df88aebfd6fecbe2c2 (diff)
downloademacs-a5fec62b519ae8c0a6528366ac8b71cd0c7ac52e.tar.gz
emacs-a5fec62b519ae8c0a6528366ac8b71cd0c7ac52e.zip
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.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 5aa57a77765..a814c3ec20d 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1882,6 +1882,12 @@ of frame decorations on macOS 10.9+.
1882--- 1882---
1883** 'process-attributes' on Darwin systems now returns more information. 1883** 'process-attributes' on Darwin systems now returns more information.
1884 1884
1885---
1886** Mousewheel and trackpad scrolling on macOS 10.7+ now behaves more
1887like the macOS default. The new variables
1888'ns-use-system-mwheel-acceleration', 'ns-touchpad-scroll-line-height'
1889and 'ns-touchpad-use-momentum' can be used to customise the behavior.
1890
1885 1891
1886---------------------------------------------------------------------- 1892----------------------------------------------------------------------
1887This file is part of GNU Emacs. 1893This file is part of GNU Emacs.