[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#55299: 29.0.50; Bug with the mode-line and pixel-scroll-precision-mo
From: |
Po Lu |
Subject: |
bug#55299: 29.0.50; Bug with the mode-line and pixel-scroll-precision-mode |
Date: |
Sat, 07 May 2022 18:26:56 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) |
[Please use X-Debbugs-CC when copying people into bug reports.]
Konrad Podczeck <konrad.podczeck@univie.ac.at> writes:
> Make an init file just containing the lines:
>
> (pixel-scroll-precision-mode)
> (setq-default mode-line-format nil)
>
> Open the app, and any file. Do C-x 2. If I scroll upwards in the
> inactive pane, using the mouse wheel, then pixel-scroll-precision-mode
> does not work.
I cannot reproduce this on GNU/Linux, but it sounds similar to a problem
others have reported on macOS that I could never reproduce.
This is not the final fix, but please see if the following code fixes
your problem:
diff --git a/lisp/pixel-scroll.el b/lisp/pixel-scroll.el
index b0fe2f56c0..a7cfda2491 100644
--- a/lisp/pixel-scroll.el
+++ b/lisp/pixel-scroll.el
@@ -685,6 +685,8 @@ pixel-scroll-precision
(setq window (frame-selected-window window)))
(if (and (nth 4 event))
(let ((delta (round (cdr (nth 4 event)))))
+ (when (< delta 1.0)
+ (setq delta 1.0))
(unless (zerop delta)
(if (> (abs delta) (window-text-height window t))
(mwheel-scroll event nil)
- bug#55299: 29.0.50; Bug with the mode-line and pixel-scroll-precision-mode, Konrad Podczeck, 2022/05/07
- bug#55299: 29.0.50; Bug with the mode-line and pixel-scroll-precision-mode,
Po Lu <=
- bug#55299: 29.0.50; Bug with the mode-line and pixel-scroll-precision-mode, Konrad Podczeck, 2022/05/07
- bug#55299: 29.0.50; Bug with the mode-line and pixel-scroll-precision-mode, Po Lu, 2022/05/07
- bug#55299: 29.0.50; Bug with the mode-line and pixel-scroll-precision-mode, Konrad Podczeck, 2022/05/07
- bug#55299: 29.0.50; Bug with the mode-line and pixel-scroll-precision-mode, Po Lu, 2022/05/07
- bug#55299: 29.0.50; Bug with the mode-line and pixel-scroll-precision-mode, Konrad Podczeck, 2022/05/07
- bug#55299: 29.0.50; Bug with the mode-line and pixel-scroll-precision-mode, Po Lu, 2022/05/07
- bug#55299: 29.0.50; Bug with the mode-line and pixel-scroll-precision-mode, Po Lu, 2022/05/07
- bug#55299: 29.0.50; Bug with the mode-line and pixel-scroll-precision-mode, Eli Zaretskii, 2022/05/08
- bug#55299: 29.0.50; Bug with the mode-line and pixel-scroll-precision-mode, Po Lu, 2022/05/08
- bug#55299: 29.0.50; Bug with the mode-line and pixel-scroll-precision-mode, Eli Zaretskii, 2022/05/08