From: Alexander Huntley <huntley.alexander@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "Kévin Le Gouguec" <kevin.legouguec@gmail.com>, 50269@debbugs.gnu.org
Subject: bug#50269: 27.2; Request: use GTK continuous scroll events for smooth touchpad scrolling
Date: Wed, 1 Sep 2021 13:57:46 +0100 [thread overview]
Message-ID: <81dc0bde-146d-d2f2-9098-35918dc1e565@gmail.com> (raw)
In-Reply-To: <83a6kxsh4p.fsf@gnu.org>
>> With pixel-scroll-mode on, when pixel-resolution-fine-flag is nil (the
>> default), I cannot get Emacs to scroll up by "just a few pixels",
>> however small my movement on the touchpad. Emacs always waits for
>> "enough movement" to scroll up a complete line, although the *animation*
>> is indeed done pixel-by-pixel (as opposed to line-by-line when
>> pixel-scroll-mode is off).
>>
>> On e.g. Mousepad (XFCE's text editor), if I move "just a bit" on the
>> touchpad, the display moves by "just a few pixels", i.e. less than a
>> full line. FWIW setting pixel-resolution-fine-flag to 1 seems to allow
>> Emacs to do the same.
> So if pixel-resolution-fine-flag is set, the behavior is the expected
> one, and we can conclude that Emacs passes this test?
If the flag is set to 1, then yes the scrolling works as desired, but only
when scrolling with the touchpad slowly (although perhaps it is scrolling
by 2 or 3 pixels instead of only 1).
When scrolling quickly, Emacs scrolls abruptly by many lines at a
time, which is not what we want. I'm sure this is possible to disable.
But now scrolling with a mouse wheel also only causes the view to shift by
1 pixel per "wheel click".
IMO the best way to solve this would be to use GTK scrolling events. They
give the correct magnitude of the scroll event (which in touchpads is
variable and much smaller than for mouse wheels). Hence Emacs would not
have to distinguish between mouse vs touchpad scrolling; it would all
be handled by GTK.
next prev parent reply other threads:[~2021-09-01 12:57 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-30 13:35 bug#50269: 27.2; Request: use GTK continuous scroll events for smooth touchpad scrolling Alexander Huntley
2021-08-30 15:57 ` Eli Zaretskii
2021-08-30 18:37 ` Alexander Huntley
2021-08-30 18:40 ` Eli Zaretskii
2021-08-30 19:02 ` Alexander Huntley
2021-08-30 19:14 ` Eli Zaretskii
2021-08-30 21:26 ` Alexander Huntley
2021-08-31 12:17 ` Eli Zaretskii
2021-08-31 16:33 ` Kévin Le Gouguec
2021-08-31 16:39 ` Eli Zaretskii
2021-09-01 12:57 ` Alexander Huntley [this message]
2021-09-01 13:49 ` Eli Zaretskii
2021-08-30 19:28 ` Alan Third
2021-08-30 21:36 ` Alexander Huntley
2021-08-30 22:22 ` Alan Third
2022-08-22 16:03 ` Lars Ingebrigtsen
2022-09-19 19:21 ` Lars Ingebrigtsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=81dc0bde-146d-d2f2-9098-35918dc1e565@gmail.com \
--to=huntley.alexander@gmail.com \
--cc=50269@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=kevin.legouguec@gmail.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.