From 6e865a7171d80cd91b54c6d71b88d960b920abe3 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Fri, 10 Dec 2021 14:20:32 +0800 Subject: [PATCH] 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. --- lisp/pixel-scroll.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/pixel-scroll.el b/lisp/pixel-scroll.el index 5425462caf5..336b555e77c 100644 --- a/lisp/pixel-scroll.el +++ b/lisp/pixel-scroll.el @@ -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 -- 2.39.2