branch: elpa/scroll-on-jump
commit 7b2919f8d8c5350f302ef2382e4bc0921938d355
Author: Campbell Barton <[email protected]>
Commit: Campbell Barton <[email protected]>
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