unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Mickey Petersen <mickey@fyeah.org>
To: Eli Zaretskii <eliz@gnu.org>, Po Lu <luangruo@yahoo.com>
Cc: 58980@debbugs.gnu.org
Subject: bug#58980: 29.0.50; Mouse wheel scroll twitches up sometimes when I scroll down
Date: Thu, 3 Nov 2022 09:46:46 +0000	[thread overview]
Message-ID: <4fe2bb6a-393a-7d5b-d90f-fd01e875a96a@fyeah.org> (raw)
In-Reply-To: <83fsf08mmf.fsf@gnu.org>



On 03/11/2022 8:31 am, Eli Zaretskii wrote:
>> Date: Wed, 2 Nov 2022 16:20:40 +0000
>> From: Mickey Petersen <mickey@fyeah.org>
>>
>> When I scroll down with my mouse wheel -- typically after an existing
>> window has changed
>> buffers, such as after selecting (via keyboard or mouse) an Info manual
>> node --
>> the scroll action sometimes (but not always) jerks upwards several
>> lines. I can then keep scrolling and it'll start scrolling down
>> again. This may sometimes happen after scrolling for a little while, and
>> sometimes not at all.
>>
>> It's hard to reproduce; but the issue affects a baseline Emacs build (-Q or
>> -q) and only sometimes.
> Please provide some kind of reproduction recipe, even if it doesn't
> happen every time.  When it does happen, type "C-h l", and post the
> commands Emacs recorded that you were invoking immediately before the
> problem.  Otherwise, it's very hard to do anything about the problem,
> unless someone here can reproduce it (I couldn't).
Sure.

I was attempting to reproduce the issue -- by mouse-1 clicking in the 
already-open lossage buffer -- and then I began scrolling _down_ though 
the lossage buffer and it triggered the issue. It instead made me scroll 
up when I was in actual fact scrolling down.
The succession of wheel-up events eventually turned into wheel-down; 
despite the fact that I only scrolled down on my mouse wheel.

Lossage:

  C-h l               ;; view-lossage
  <down-mouse-1>      ;; mouse-drag-region <- I enter the lossage buffer
  <mouse-1>           ;; mouse-set-point
  <down-mouse-1>      ;; mouse-drag-region
  <mouse-1>           ;; mouse-set-point
  <wheel-up>          ;; mwheel-scroll <- I begin scrolling down on my 
physical mouse wheel
  <wheel-up>          ;; mwheel-scroll
  <wheel-up>          ;; mwheel-scroll
  <wheel-up>          ;; mwheel-scroll
  <wheel-up>          ;; mwheel-scroll
  <wheel-down>        ;; mwheel-scroll <- It corrects itself and 
actually starts scrolling down.
  <wheel-down>        ;; mwheel-scroll
  <wheel-down>        ;; mwheel-scroll
  <wheel-down>        ;; mwheel-scroll
  <double-wheel-down> ;; mwheel-scroll
  <triple-wheel-down> ;; mwheel-scroll
  <wheel-down>        ;; mwheel-scroll
  C-h l               ;; view-lossage <- I refresh the lossage.


I _do_, however, have a way that seems to reproduce the issue: when I 
scroll an inactive window and then go back to scrolling the active 
window the bug manifests itself more easily:

1. Ensure there are two windows minimum.
2. Select one.
3. Scroll the other down by hovering over it with your mouse.
4. Now attempt to scroll the active window. Mine will scroll up, and 
trigger "beginning of buffer" user errors if it's already at the top.

Seems there's some stateful behaviour that does or does not get carried 
over when the 'hovered window scroll' changes?


>> I had a look in the bug tracker for `scroll' and found nothing. I also
>> checked `M-x customize-changed' to look for likely culprits. I found
>> nothing that may cause this behaviour, beyond pixel scrolling, which
>> seems like a smoking gun to me,
>> but it's off by default in emacs -Q.
>>
>> 1. Is it possible there are changes the scrolling code that is active even
>> when that mode is not?
>>
>> 2. Could there be some sort of variable that determines scroll direction
>> that, somehow, gets confused?
> Hard to answer these questions, but maybe Po Lu with have clues.






  reply	other threads:[~2022-11-03  9:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-02 16:20 bug#58980: 29.0.50; Mouse wheel scroll twitches up sometimes when I scroll down Mickey Petersen
2022-11-03  8:31 ` Eli Zaretskii
2022-11-03  9:46   ` Mickey Petersen [this message]
2022-11-03 10:04     ` Eli Zaretskii
2022-11-03 11:07     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
     [not found]       ` <0eece511-bacd-2d16-107b-9b9251cc8236@fyeah.org>
     [not found]         ` <87eduke019.fsf@yahoo.com>
     [not found]           ` <af233f63-79d3-2125-9a78-91ef30f55128@fyeah.org>
     [not found]             ` <87y1ssckpe.fsf@yahoo.com>
     [not found]               ` <561adb8a-2f09-9bbd-1c9a-d99098613ed9@fyeah.org>
     [not found]                 ` <87tu3gci00.fsf@yahoo.com>
     [not found]                   ` <138ccba0-9bc5-ad23-c103-fd118caf73ff@fyeah.org>
     [not found]                     ` <87pme3d0mh.fsf@yahoo.com>
     [not found]                       ` <6980406f-2807-1b7b-86e9-6a0e1b4cc470@fyeah.org>
2022-11-04 11:22                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-04 11:28                           ` Mickey Petersen
2022-11-04 11:30                             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-04 11:31                               ` Mickey Petersen
2022-11-03 11:05   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4fe2bb6a-393a-7d5b-d90f-fd01e875a96a@fyeah.org \
    --to=mickey@fyeah.org \
    --cc=58980@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=luangruo@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).