unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Tassilo Horn <tsdh@gnu.org>
Cc: 57526@debbugs.gnu.org
Subject: bug#57526: 29.0.50; Precise pixel-scrolling works great with touchpad but not with mouse wheel
Date: Fri, 02 Sep 2022 09:15:00 +0800	[thread overview]
Message-ID: <87wnamlgq3.fsf@yahoo.com> (raw)
In-Reply-To: <87edwvqi16.fsf@gnu.org> (Tassilo Horn's message of "Thu, 01 Sep 2022 15:48:43 +0200")

Tassilo Horn <tsdh@gnu.org> writes:

> The reason for the difference is that the EVENTs passed to
> pixel-scroll-precision have very different delta values.  The touchpad
> events command emacs to scroll about 20 pixels, the mouse wheel events
> command it to scroll 150 pixels.

Try playing with pixel-scroll-precision-large-scroll-height; start with
a value of 30, and adjust it upwards if it interferes with trackpad
scrolling.

> I see there's some interpolation feature which might be relevant but I
> don't get into that code path because (device-class last-event-frame
> last-event-device) returns core-keyboard instead of mouse.  I get that
> value in both the case where I scrolled using touchpad as well as mouse.
> When I typed something with the real keyboard, it says just keyboard.

That part of the code will be reworked soon in accordance with an
earlier discussion, and you can assist with that by sending the result
of running "xinput list --long", which will help determine why your
mouse is not being recognized by Emacs.

Unfortunately momentum will not work with any non-trackpad mice other
than Apple's "Magic Mouse 2" (which recently gained driver support on
the kernel side), since the necessary tactile information is not
reported to programs by their hardware.






  reply	other threads:[~2022-09-02  1:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-01 13:48 bug#57526: 29.0.50; Precise pixel-scrolling works great with touchpad but not with mouse wheel Tassilo Horn
2022-09-02  1:15 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-09-02  4:57   ` Tassilo Horn
2022-09-02  9:30     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-02 11:41       ` Tassilo Horn
2022-09-02 12:33         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-02 12:39           ` Tassilo Horn
2022-09-03  1:04             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-03  7:04               ` Tassilo Horn

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=87wnamlgq3.fsf@yahoo.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=57526@debbugs.gnu.org \
    --cc=luangruo@yahoo.com \
    --cc=tsdh@gnu.org \
    /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).