]> git.eshelyaron.com Git - emacs.git/commit
Improve velocity calculation in momentum scrolling
authorPo Lu <luangruo@yahoo.com>
Fri, 3 Dec 2021 05:55:39 +0000 (13:55 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 3 Dec 2021 06:04:04 +0000 (14:04 +0800)
commit1afa295aed81357fddf9694bfe68ed0e6d159a2d
treebf770c1e7919cfdf48b4f91d5b948a6f536a809e
parentc66eb524537f98667507024e5f21e0b24038c964
Improve velocity calculation in momentum scrolling

* lisp/pixel-scroll.el
(pixel-scroll-precision-momentum-factor): Remove option.
(pixel-scroll-precision-initial-velocity-factor)
(pixel-scroll-precision-momentum-min-velocity): New user
options.
(pixel-scroll-accumulate-velocity): Clear velocity ring
if sign is different.
(pixel-scroll-calculate-velocity): Use current time.
(pixel-scroll-start-momentum): Use better algorithm.
lisp/pixel-scroll.el