GNU bug report logs - #67504
Pixel scroll down not smooth when scrolled horizontally

Previous Next

Package: emacs;

Reported by: Mattias Engdegård <mattias.engdegard <at> gmail.com>

Date: Tue, 28 Nov 2023 10:27:02 UTC

Severity: normal

To reply to this bug, email your comments to 67504 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#67504; Package emacs. (Tue, 28 Nov 2023 10:27:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mattias Engdegård <mattias.engdegard <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 28 Nov 2023 10:27:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mattias Engdegård <mattias.engdegard <at> gmail.com>
To: Emacs Bug Report <bug-gnu-emacs <at> gnu.org>
Subject: Pixel scroll down not smooth when scrolled horizontally
Date: Tue, 28 Nov 2023 11:25:46 +0100
In pixel-scroll-precision-mode, when the buffer is scrolled horizontally, scrolling up is smooth but scrolling down is not. Smaller movements appear to get stuck without making progress.

Scrolling up or down is smooth when the buffer is not scrolled horizontally (ie, left margin is visible).

Observed in Emacs 29 and 30 on macOS, NS port, scrolling with trackpad.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#67504; Package emacs. (Mon, 25 Dec 2023 14:31:02 GMT) Full text and rfc822 format available.

Message #8 received at 67504 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Mattias Engdegård <mattias.engdegard <at> gmail.com>, 
 67504 <at> debbugs.gnu.org
Cc: Po Lu <luangruo <at> yahoo.com>
Subject: Re: bug#67504: Pixel scroll down not smooth when scrolled horizontally
Date: Mon, 25 Dec 2023 06:30:41 -0800
Mattias Engdegård <mattias.engdegard <at> gmail.com> writes:

> In pixel-scroll-precision-mode, when the buffer is scrolled horizontally, scrolling up is smooth but scrolling down is not. Smaller movements appear to get stuck without making progress.
>
> Scrolling up or down is smooth when the buffer is not scrolled horizontally (ie, left margin is visible).
>
> Observed in Emacs 29 and 30 on macOS, NS port, scrolling with trackpad.

Copying in Po Lu.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#67504; Package emacs. (Tue, 26 Dec 2023 01:39:01 GMT) Full text and rfc822 format available.

Message #11 received at 67504 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: 67504 <at> debbugs.gnu.org,
 Mattias Engdegård <mattias.engdegard <at> gmail.com>
Subject: Re: bug#67504: Pixel scroll down not smooth when scrolled horizontally
Date: Tue, 26 Dec 2023 09:38:22 +0800
Stefan Kangas <stefankangas <at> gmail.com> writes:

> Mattias Engdegård <mattias.engdegard <at> gmail.com> writes:
>
>> In pixel-scroll-precision-mode, when the buffer is scrolled
>> horizontally, scrolling up is smooth but scrolling down is
>> not. Smaller movements appear to get stuck without making progress.
>>
>> Scrolling up or down is smooth when the buffer is not scrolled
>> horizontally (ie, left margin is visible).
>>
>> Observed in Emacs 29 and 30 on macOS, NS port, scrolling with
>> trackpad.
>
> Copying in Po Lu.

I thought I replied that this is user error: pixel scrolling to a
position that requires moving point will reset hscroll unless
auto-hscroll-mode is off, as it should be if moving point to the start
of a line is not meant to reset hscroll, whether through scrolling or
otherwise.

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#67504; Package emacs. (Tue, 26 Dec 2023 09:42:02 GMT) Full text and rfc822 format available.

Message #14 received at 67504 <at> debbugs.gnu.org (full text, mbox):

From: Mattias Engdegård <mattias.engdegard <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 67504 <at> debbugs.gnu.org, Stefan Kangas <stefankangas <at> gmail.com>
Subject: Re: bug#67504: Pixel scroll down not smooth when scrolled horizontally
Date: Tue, 26 Dec 2023 10:40:44 +0100
26 dec. 2023 kl. 02.38 skrev Po Lu <luangruo <at> yahoo.com>:

> pixel scrolling to a
> position that requires moving point will reset hscroll unless
> auto-hscroll-mode is off, as it should be if moving point to the start
> of a line is not meant to reset hscroll, whether through scrolling or
> otherwise.

No, the bug shows even if no point motion takes place.
Here is my attempt at detailed reproduction instructions:

1. Start Emacs. Switch to a new buffer.
2. C-u 100 a
3. C-u 200 M-x duplicate-dwim RET
4. If necessary, resize the frame so that the lines wrap.
5. C-x x t
6. M-x pixel-scroll-precision-mode RET
7. C-u 100 M-g g
8. C-l   (to center point on screen)
9. C-e

Now try scrolling gently up/down using the trackpad, mouse wheel or similar device.
Expected: buffer scrolls smoothly in both directions.
Observed: buffer scrolls smoothly in one direction but not the other.

It would be useful if someone would try reproducing this bug on platforms other than macOS as well, to help us understand if the bug is specific to that port.

> Thanks.

You are welcome.





This bug report was last modified 1 year and 172 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.