unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: Po Lu <luangruo@yahoo.com>
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 14:39:29 +0200	[thread overview]
Message-ID: <87sfla2b8z.fsf@gnu.org> (raw)
In-Reply-To: <87pmgej6ri.fsf@yahoo.com>

Po Lu <luangruo@yahoo.com> writes:

>> Actually, I use pgtk so that emacs runs as native wayland client but
>> I guess that doesn't make a difference here.
>
> Hmm, please show what message is displayed when you scroll with the
> mouse, after running this:
>
>   (while t (read-event) (message "Device: %s" last-event-device))

Device: Virtual core pointer [24 times]

>> AFAIK, X and wayland use libinput for device handling by default and
>> "libinput list-devices" knows about touchpad AND USB mouse.  Of
>> course I have no clue if that has any relevance wrt. emacs.
>
> X doesn't necessarily use libinput for input handling.  It all depends
> on the input drivers in use.
>
> Most Wayland compositors do, however.

I use sway and also have only xf86-input-libinput and
xf86-input-synaptics installed.

When I run "sudo libinput debug-events" and click and scroll with the
USB mouse, I get:

 event6   POINTER_MOTION          +34.209s	 0.00/  0.41 ( +0.00/ +1.00)
 event6   POINTER_BUTTON          +34.209s	BTN_LEFT (272) released, seat count: 0
 event6   POINTER_SCROLL_WHEEL    +35.425s	vert -15.00/-120.0* horiz 0.00/0.0 (wheel)

With the touchpad I get:

-event18  GESTURE_HOLD_BEGIN      +0.041s	2
 event18  GESTURE_HOLD_END        +2.254s	2
 event18  POINTER_MOTION          +3.456s	-0.12/  0.41 ( -1.00/ +3.32)
 event18  POINTER_MOTION          +3.465s	-0.24/  1.60 ( -1.00/ +6.65)
 event18  POINTER_MOTION          +3.475s	-0.51/  1.42 ( -2.00/ +5.54)
 event18  POINTER_MOTION          +3.484s	 0.00/  2.85 ( +0.00/+11.08)
 event18  GESTURE_HOLD_BEGIN      +4.527s	1
 event18  GESTURE_HOLD_END        +4.545s	1

In both cases, event6 and event18 are the devices shown by "sudo
libinput list-devices".

Bye,
Tassilo





  reply	other threads:[~2022-09-02 12:39 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
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 [this message]
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=87sfla2b8z.fsf@gnu.org \
    --to=tsdh@gnu.org \
    --cc=57526@debbugs.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).