Further reduce image-related stutter during precision scrolling

* lisp/pixel-scroll.el
(pixel-scroll-precision-scroll-down-page): Disable
`scroll-preserve-screen-position' and `auto-window-vscroll'
while scrolling.
This commit is contained in:
Po Lu 2021-12-10 14:20:32 +08:00
parent 636704fab9
commit 6e865a7171

View file

@ -453,7 +453,9 @@ the height of the current window."
(goto-char desired-start)
(when (zerop (vertical-motion (1+ scroll-margin)))
(signal 'end-of-buffer nil))
(point))))
(point)))
(scroll-preserve-screen-position nil)
(auto-window-vscroll nil))
(when (and (or (< (point) next-pos))
(let ((pos-visibility (pos-visible-in-window-p next-pos nil t)))
(and pos-visibility