all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Alexander Huntley <huntley.alexander@gmail.com>
Cc: 50269@debbugs.gnu.org
Subject: bug#50269: 27.2; Request: use GTK continuous scroll events for smooth touchpad scrolling
Date: Tue, 31 Aug 2021 15:17:09 +0300	[thread overview]
Message-ID: <83fsupu7ui.fsf@gnu.org> (raw)
In-Reply-To: <1df288ac-476b-eee0-88bf-482736ac0823@gmail.com> (message from Alexander Huntley on Mon, 30 Aug 2021 22:26:45 +0100)

> From: Alexander Huntley <huntley.alexander@gmail.com>
> Cc: 50269@debbugs.gnu.org
> Date: Mon, 30 Aug 2021 22:26:45 +0100
> 
> pixel-scroll-mode may shift the display one pixel at a time, but it
> also "snaps" the display to certain larger intervals, (integer numbers
> of lines).

I don't think I follow: what is this "snapping" you are alluding to
here?  Can you tell me how to reproduce this snapping, so I could
understand better the problem you have in mind?

> If we could use the more precise/frequent data actually coming from
> the touchpad, then the user could control the scrolling more precisely:
> instead of scrolling by n lines, the user could scroll by as little
> as a single pixel at a time.

The scrolling, whether pixel-wise or not, is performed by the Emacs
display engine; the scroll commands themselves just tell the display
engine where in buffer text to start the display of a window, and with
what "shifting offset" in pixels to display that text.  So I don't see
how using some different/more precise data will help, if all that data
tells Emacs is by how many pixels to scroll, because the actual
scrolling will still be performed by the same display engine.  If the
display engine is unable to scroll smoothly, for some reason, using
different data source to compute how many pixels to scroll will not
help.

So we must first understand what is wrong with pixel-scroll-mode,
because all it does with the "normal" (a.k.a. "imprecise") scroll
commands coming from the touchpad is compute how many pixels to
scroll, and the default is AFAIR to scroll a small number of pixels
per wheel notch (you can customize it to make it exactly 1 pixel).

Therefore, I hope you could help us understand what is wrong with the
pixel-wise scrolling in the display engine, as it is used by
pixel-scroll-mode.  TIA.





  reply	other threads:[~2021-08-31 12:17 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 [this message]
2021-08-31 16:33               ` Kévin Le Gouguec
2021-08-31 16:39                 ` Eli Zaretskii
2021-09-01 12:57                   ` Alexander Huntley
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=83fsupu7ui.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=50269@debbugs.gnu.org \
    --cc=huntley.alexander@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.