]> git.eshelyaron.com Git - emacs.git/commit
Improve momentum scrolling algorithm
authorPo Lu <luangruo@yahoo.com>
Thu, 2 Dec 2021 11:35:09 +0000 (19:35 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 2 Dec 2021 11:36:33 +0000 (19:36 +0800)
commitd45e72fe5a9205b2e146d27e8e26233ee8518331
tree7522ff97f07dbff7d56a5019f46d3cbf87d985a2
parentaa6a05c146e94c0afc35b5354d68da55aecb2db7
Improve momentum scrolling algorithm

* lisp/pixel-scroll.el (pixel-scroll-precision-momentum-tick):
(pixel-scroll-precision-momentum-factor): New user options.

(pixel-scroll-kinetic-state, pixel-scroll-accumulate-velocity):
Set scroll momentum ring size to 10.

(pixel-scroll-start-momentum): Improve algorithm.
lisp/pixel-scroll.el