]> git.eshelyaron.com Git - emacs.git/commit
Improve scroll interpolation in pixel-s-precision-mode
authorPo Lu <luangruo@yahoo.com>
Wed, 21 Sep 2022 11:24:06 +0000 (19:24 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 21 Sep 2022 11:32:51 +0000 (19:32 +0800)
commit61e4964a8ad2e911928136c1f1667eb5ff55149e
treec03482a1b8088518445db10ac87bb8ee86da3998
parent760df6a5f1d3022f303416a03215c015216abb30
Improve scroll interpolation in pixel-s-precision-mode

* lisp/pixel-scroll.el (pixel-scroll-precision-interpolate): New
arg FACTOR.  Use it to determine the interpolation factor if
non-nil.  Also, clear scroll remainder if direction changes, and
determine deltas based on the absolute amount of time passed.
(bug#57967)
(pixel-scroll-interpolate-down, pixel-scroll-interpolate-up):
Pass factor of 0 to scroll exactly 1 page.
lisp/pixel-scroll.el