emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/scroll-on-jump 7b2919f8d8 27/31: Fix smooth (pixel) scroll


From: ELPA Syncer
Subject: [nongnu] elpa/scroll-on-jump 7b2919f8d8 27/31: Fix smooth (pixel) scrolling not being used in most cases
Date: Thu, 7 Jul 2022 12:03:15 -0400 (EDT)

branch: elpa/scroll-on-jump
commit 7b2919f8d8c5350f302ef2382e4bc0921938d355
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>

    Fix smooth (pixel) scrolling not being used in most cases
---
 scroll-on-jump.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scroll-on-jump.el b/scroll-on-jump.el
index d32a83c7d0..4067965bc3 100644
--- a/scroll-on-jump.el
+++ b/scroll-on-jump.el
@@ -361,7 +361,7 @@ Moving the point when ALSO-MOVE-POINT is set."
     ;; Harmless but seems like a glitch if `scroll-on-jump' is being applied to
     ;; `next-line' or `previous-line'.
     ;; So it's simplest not to use smooth scroll in this particular case.
-    ((and scroll-on-jump-smooth (display-graphic-p) (> 1 (abs lines-scroll)))
+    ((and scroll-on-jump-smooth (display-graphic-p) (> (abs lines-scroll) 1))
       (scroll-on-jump--animated-scroll-by-px window lines-scroll dir 
also-move-point))
     ;; Use line scrolling.
     (t



reply via email to

[Prev in Thread] Current Thread [Next in Thread]