]> git.eshelyaron.com Git - emacs.git/commitdiff
Further reduce image-related stutter during precision scrolling
authorPo Lu <luangruo@yahoo.com>
Fri, 10 Dec 2021 06:20:32 +0000 (14:20 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 10 Dec 2021 06:20:32 +0000 (14:20 +0800)
* lisp/pixel-scroll.el
(pixel-scroll-precision-scroll-down-page): Disable
`scroll-preserve-screen-position' and `auto-window-vscroll'
while scrolling.

lisp/pixel-scroll.el

index 5425462caf5f9c1393824cf8b790f44d9692493e..336b555e77cee1f6e5dbd3ea8000043341c0bd82 100644 (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