]> git.eshelyaron.com Git - emacs.git/commit
Add some primitive momentum-based precision scrolling
authorPo Lu <luangruo@yahoo.com>
Thu, 2 Dec 2021 03:01:59 +0000 (11:01 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 2 Dec 2021 03:01:59 +0000 (11:01 +0800)
commit603bdc8d38ce4325380d29423939e5287e8aac17
tree15c661d1ea75de9fc0dde11f532a2ae22052ca73
parent5001f4f91b9a959ddc345de36153689174df67a9
Add some primitive momentum-based precision scrolling

The algorithm used to scroll the display kinetically is very
simple and needs improvement.  Someone should work on that
eventually.

* lisp/pixel-scroll.el (pixel-scroll-precision-use-momentum):
New user option.
(pixel-scroll-precision-mode-map): Add
`pixel-scroll-start-momentum'.
(pixel-scroll-kinetic-state):
(pixel-scroll-accumulate-velocity):
(pixel-scroll-calculate-velocity): New functions.
(pixel-scroll-start-momentum): New command.

* src/xterm.c (handle_one_xevent): Fix touch-end event
generation.
lisp/pixel-scroll.el
src/xterm.c