From: Po Lu Date: Fri, 10 Dec 2021 06:20:32 +0000 (+0800) Subject: Further reduce image-related stutter during precision scrolling X-Git-Tag: emacs-29.0.90~3606^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6e865a7171d80cd91b54c6d71b88d960b920abe3;p=emacs.git 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. --- 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