* lisp/pixel-scroll.el (pixel-scroll-start-momentum): Fix algorithm.
This commit is contained in:
parent
f5f5297a92
commit
ef2c386829
1 changed files with 2 additions and 1 deletions
|
@ -549,7 +549,8 @@ It is a vector of the form [ VELOCITY TIME ]."
|
|||
(unwind-protect (progn
|
||||
(aset state 0
|
||||
(/ (pixel-scroll-calculate-velocity state) 2))
|
||||
(let ((velocity (aref state 0)))
|
||||
(let ((velocity (* (aref state 0)
|
||||
pixel-scroll-precision-momentum-tick)))
|
||||
(if (> velocity 0)
|
||||
(while (> velocity 1)
|
||||
(pixel-scroll-precision-scroll-up (round velocity))
|
||||
|
|
Loading…
Add table
Reference in a new issue