From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#57526: 29.0.50; Precise pixel-scrolling works great with touchpad but not with mouse wheel Date: Fri, 02 Sep 2022 06:57:15 +0200 Message-ID: <875yi64ag4.fsf@gnu.org> References: <87edwvqi16.fsf@gnu.org> <87wnamlgq3.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18058"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.9.0; emacs 29.0.50 Cc: 57526@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 02 07:23:10 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oTz94-0004Zx-2p for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Sep 2022 07:23:10 +0200 Original-Received: from localhost ([::1]:44368 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTz92-0006X5-If for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Sep 2022 01:23:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39400) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTz8w-0006Wu-9h for bug-gnu-emacs@gnu.org; Fri, 02 Sep 2022 01:23:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54856) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTz8w-0000Kd-0r for bug-gnu-emacs@gnu.org; Fri, 02 Sep 2022 01:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oTz8v-00055q-Qz for bug-gnu-emacs@gnu.org; Fri, 02 Sep 2022 01:23:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Sep 2022 05:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57526 X-GNU-PR-Package: emacs Original-Received: via spool by 57526-submit@debbugs.gnu.org id=B57526.166209616619552 (code B ref 57526); Fri, 02 Sep 2022 05:23:01 +0000 Original-Received: (at 57526) by debbugs.gnu.org; 2 Sep 2022 05:22:46 +0000 Original-Received: from localhost ([127.0.0.1]:44605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTz8f-00055I-J9 for submit@debbugs.gnu.org; Fri, 02 Sep 2022 01:22:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTz8e-000552-Ev for 57526@debbugs.gnu.org; Fri, 02 Sep 2022 01:22:45 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40802) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTz8Z-0000Dv-4p; Fri, 02 Sep 2022 01:22:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-reply-to:Date:Subject:To:From: References; bh=2LNMedAlbzp4Uicis/PM4thW7sjEqAWzpgWg36H/cVU=; b=MwU3DX9ak2Yjmd GPoepod00Ko+Wnuyt8Q1oGM5kqZw+rRYJNTUXXum+D6itWpOw3AHuL54EXgo072rPIq65NADZ8i66 9A+5gqwruBnJvDZ89AjTd8L/dU7iT9l5avagVupvuXz5JA0k/SNLSZ0z22XuZl6/z1Xvacl5NI8za UJcgE8vta8wSmcIKFTi3g4X+FQyKAXuNPYkzAyfOBDN2lIUtjndw/TvmEq9ZdXK4WQ5DPVAVjK0Px Zdt3VHtFna6owv7LAPD9N6ckk+8yz+EaplKIDD9uu9kvGeXiyoxc3Dz5S06Z4JyWffemAcqgywQUT 4s4mnxbpVb19ZqvCW9gA==; Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:49039) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTz8Y-0000XF-U5; Fri, 02 Sep 2022 01:22:38 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id AA11427C005A; Fri, 2 Sep 2022 01:22:38 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 02 Sep 2022 01:22:38 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdekledgleehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpehffgfhvfevufffjgfkgggtsehmtd erredtreejnecuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdr ohhrgheqnecuggftrfgrthhtvghrnheptedtkedvveffhedvteduieejtdeiffevvedvke evuddvkedtleffhffhhffhveelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlih hthidqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgr shhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 2 Sep 2022 01:22:37 -0400 (EDT) In-reply-to: <87wnamlgq3.fsf@yahoo.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:241286 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Po Lu 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. Oh, yes, that does the trick. I don't actually feel much of a difference (if any) no matter if I set it to 10 vs. 140. It seems it must be at least smaller as the delta in the mouse wheel events (150) in order to have any effect but that's it. So I went with 140. >> 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. The short list is: --8<---------------cut here---------------start------------->8--- =E2=9D=AF xinput list WARNING: running xinput against an Xwayland server. See the xinput man page= for details. =E2=8E=A1 Virtual core pointer id=3D2 [master pointer = (3)] =E2=8E=9C =E2=86=B3 Virtual core XTEST pointer id=3D4 [slav= e pointer (2)] =E2=8E=9C =E2=86=B3 xwayland-pointer:39 id=3D6 [slav= e pointer (2)] =E2=8E=9C =E2=86=B3 xwayland-relative-pointer:39 id=3D7 [slav= e pointer (2)] =E2=8E=9C =E2=86=B3 xwayland-pointer-gestures:39 id=3D8 [slav= e pointer (2)] =E2=8E=A3 Virtual core keyboard id=3D3 [master keyboard = (2)] =E2=86=B3 Virtual core XTEST keyboard id=3D5 [slave keybo= ard (3)] =E2=86=B3 xwayland-keyboard:39 id=3D9 [slave keybo= ard (3)] --8<---------------cut here---------------end--------------->8--- Interestingly, that list is the same no matter if I plugged my mouse into my notebook's USB slot or if it is not connected. The long list is attached. --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename=xinput-list-long.txt Content-Transfer-Encoding: quoted-printable WARNING: running xinput against an Xwayland server. See the xinput man page= for details. =E2=8E=A1 Virtual core pointer id=3D2 [master pointer = (3)] Reporting 3 classes: Class originated from: 2. Type: XIButtonClass Buttons supported: 10 Button labels: "Button Left" "Button Middle" "Button Right" "Button Wheel= Up" "Button Wheel Down" "Button Horiz Wheel Left" "Button Horiz Wheel Righ= t" None None None Button state: Class originated from: 2. Type: XIValuatorClass Detail for Valuator 0: Label: Rel X Range: -1.000000 - -1.000000 Resolution: 0 units/m Mode: relative Class originated from: 2. Type: XIValuatorClass Detail for Valuator 1: Label: Rel Y Range: -1.000000 - -1.000000 Resolution: 0 units/m Mode: relative =E2=8E=9C =E2=86=B3 Virtual core XTEST pointer id=3D4 [slav= e pointer (2)] Reporting 3 classes: Class originated from: 4. Type: XIButtonClass Buttons supported: 10 Button labels: "Button Left" "Button Middle" "Button Right" "Button Wheel= Up" "Button Wheel Down" "Button Horiz Wheel Left" "Button Horiz Wheel Righ= t" None None None Button state: Class originated from: 4. Type: XIValuatorClass Detail for Valuator 0: Label: Rel X Range: -1.000000 - -1.000000 Resolution: 0 units/m Mode: relative Class originated from: 4. Type: XIValuatorClass Detail for Valuator 1: Label: Rel Y Range: -1.000000 - -1.000000 Resolution: 0 units/m Mode: relative =E2=8E=9C =E2=86=B3 xwayland-pointer:39 id=3D6 [slav= e pointer (2)] Reporting 7 classes: Class originated from: 6. Type: XIButtonClass Buttons supported: 10 Button labels: "Button Left" "Button Middle" "Button Right" "Button Wheel= Up" "Button Wheel Down" "Button Horiz Wheel Left" "Button Horiz Wheel Righ= t" None None None Button state: Class originated from: 6. Type: XIValuatorClass Detail for Valuator 0: Label: Abs X Range: 0.000000 - 65535.000000 Resolution: 10000 units/m Mode: absolute Current value: 0.000000 Class originated from: 6. Type: XIValuatorClass Detail for Valuator 1: Label: Abs Y Range: 0.000000 - 65535.000000 Resolution: 10000 units/m Mode: absolute Current value: 0.000000 Class originated from: 6. Type: XIValuatorClass Detail for Valuator 2: Label: Rel Horiz Wheel Range: -1.000000 - -1.000000 Resolution: 0 units/m Mode: relative Class originated from: 6. Type: XIValuatorClass Detail for Valuator 3: Label: Rel Vert Wheel Range: -1.000000 - -1.000000 Resolution: 0 units/m Mode: relative Class originated from: 6. Type: XIScrollClass Scroll info for Valuator 2 type: 2 (horizontal) increment: 1.000000 flags: 0x0 Class originated from: 6. Type: XIScrollClass Scroll info for Valuator 3 type: 1 (vertical) increment: 1.000000 flags: 0x2 ( preferred ) =E2=8E=9C =E2=86=B3 xwayland-relative-pointer:39 id=3D7 [slav= e pointer (2)] Reporting 7 classes: Class originated from: 7. Type: XIButtonClass Buttons supported: 10 Button labels: "Button Left" "Button Middle" "Button Right" "Button Wheel= Up" "Button Wheel Down" "Button Horiz Wheel Left" "Button Horiz Wheel Righ= t" None None None Button state: Class originated from: 7. Type: XIValuatorClass Detail for Valuator 0: Label: Rel X Range: -1.000000 - -1.000000 Resolution: 0 units/m Mode: relative Class originated from: 7. Type: XIValuatorClass Detail for Valuator 1: Label: Rel Y Range: -1.000000 - -1.000000 Resolution: 0 units/m Mode: relative Class originated from: 7. Type: XIValuatorClass Detail for Valuator 2: Label: Rel Horiz Wheel Range: -1.000000 - -1.000000 Resolution: 0 units/m Mode: relative Class originated from: 7. Type: XIValuatorClass Detail for Valuator 3: Label: Rel Vert Wheel Range: -1.000000 - -1.000000 Resolution: 0 units/m Mode: relative Class originated from: 7. Type: XIScrollClass Scroll info for Valuator 2 type: 2 (horizontal) increment: 1.000000 flags: 0x0 Class originated from: 7. Type: XIScrollClass Scroll info for Valuator 3 type: 1 (vertical) increment: 1.000000 flags: 0x2 ( preferred ) =E2=8E=9C =E2=86=B3 xwayland-pointer-gestures:39 id=3D8 [slav= e pointer (2)] Reporting 2 classes: Class originated from: 8. Type: XIValuatorClass Detail for Valuator 0: Label: Rel X Range: -1.000000 - -1.000000 Resolution: 0 units/m Mode: relative Class originated from: 8. Type: XIValuatorClass Detail for Valuator 1: Label: Rel Y Range: -1.000000 - -1.000000 Resolution: 0 units/m Mode: relative =E2=8E=A3 Virtual core keyboard id=3D3 [master keyboard = (2)] Reporting 1 classes: Class originated from: 9. Type: XIKeyClass Keycodes supported: 248 =E2=86=B3 Virtual core XTEST keyboard id=3D5 [slave keybo= ard (3)] Reporting 1 classes: Class originated from: 5. Type: XIKeyClass Keycodes supported: 248 =E2=86=B3 xwayland-keyboard:39 id=3D9 [slave keybo= ard (3)] Reporting 1 classes: Class originated from: 9. Type: XIKeyClass Keycodes supported: 248 --=-=-= Content-Type: text/plain Bye, Tassilo --=-=-=--