From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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 09:15:00 +0800 Message-ID: <87wnamlgq3.fsf@yahoo.com> References: <87edwvqi16.fsf@gnu.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21373"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: 57526@debbugs.gnu.org To: Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 02 03:16:50 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 1oTvIf-0005Nl-AC for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Sep 2022 03:16:49 +0200 Original-Received: from localhost ([::1]:45800 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTvId-0003zn-Gu for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Sep 2022 21:16:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTvHu-0003zN-Bq for bug-gnu-emacs@gnu.org; Thu, 01 Sep 2022 21:16:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54672) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTvHu-00039X-3k for bug-gnu-emacs@gnu.org; Thu, 01 Sep 2022 21:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oTvHt-0007D9-S1 for bug-gnu-emacs@gnu.org; Thu, 01 Sep 2022 21:16:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Sep 2022 01:16: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.166208132027669 (code B ref 57526); Fri, 02 Sep 2022 01:16:01 +0000 Original-Received: (at 57526) by debbugs.gnu.org; 2 Sep 2022 01:15:20 +0000 Original-Received: from localhost ([127.0.0.1]:44421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTvHD-0007CD-If for submit@debbugs.gnu.org; Thu, 01 Sep 2022 21:15:19 -0400 Original-Received: from sonic310-25.consmr.mail.ne1.yahoo.com ([66.163.186.206]:41472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTvHB-0007Bx-7P for 57526@debbugs.gnu.org; Thu, 01 Sep 2022 21:15:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1662081311; bh=9f8UVWaaCBFBu9JPXz7ZyHIH2wCdro8qckD0AA7S6rw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=DPLrNNwm0xXRCWtDC9aux8do2VBIhiDMpCPLnZ9EHwvvKBeW3fBZe5VflNTx6sY1U/6LHta8176coOF3HFq+cxBPKc0lHRq3v/UODr4ezjDUXjUmI6FKcx0iKtMJ8r/q2YoJo7/fBk9jzlU/aZSF7vwFe1NCoVvEM/U8+1qxG8i0sJ1mgweql/9SrsqGR+1qf69JoPEM5s0apCIufxLIF8I3SNLb+e9tQRZ5iGuYEddGv2lOWj2iLKQiv4AKKWrr3FXztWMhdg4KsDcpM0QkKm5KkrC9XKChIyfOUTuIHGQpuC/qzecQnvm5iEJWIQ8ldbhcCAq2KXzjM5lU7cQFVA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1662081311; bh=91djUlA8WKPTzJHOawExmZickpbGJKiLTnAbDevUgNC=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=COGweQ9+26wsdRAC4jkH8047Psad6Wm/VRHRsuUvOmw3lPKgXL2X/nBkHoXI2gvTF29SbXfHS3bRwEFMtWE717F7yYDTRVeJHm0z4+//pp2RM3Om4FNf2kbw5fa2x5ctZoDD7goN81u+UooviiQg7ZC1cySh+PU3BWS34Lyy1P9+4rg8WyRRsSIik4JXhWvHS56QNZb7HSbuTtJRfpixTULWrarnMoRwan57To5qeHHo0Ctc15Io7yL0R+nMmWZIUKA+8MoVZCif4DUhYXn6+EAtOYm9ANNN8ENNDF5TLimQGkLchbcK/aul9qo+l4EYWlArG3ezO9VyrgnR6kf0aw== X-YMail-OSG: DLO2kQgVM1nZoF6Q4pH5fGuLp1gbuDKIQgLF5agmM1FcEoUDZrsdb_vnkBkj01k HjZTF42uhZEFe2653T4rShjQZAun90Lt_ysfcB3GVnF2oX0Q8tnSrYiRGB2jYWP7LXQSQEwxX5Op O9CbMtaViklgj..3qPEnhErW7.v_tkbQKWKDVWESK3hg6741VgCJ5BXr.NSlakZ_JyT71kpwas6V ZcxB7MS9dpELDNXwOK9wSrlcfwt1r_uODEQWs_q9Z31_SuPLNJlbQAdamMaJ0G0XIsuMOkbQjvv4 9YSXqSrxFOUmAatsk7hekHqnFcHIO08veiO9RyL9xal9x.oD3IbaJu6KqvdhmMOpRbfKjagSiSAj nh0qGXfPql7hpeCG.RmmPgEF4jsCZPxeBwJ_7oCbsoG0bdLtxyoI2guzSuQxWJq95SETxxPeSKAO YKy2LmiX491wHu9ViTjHIt4PMMWjBOI7f8yCqOPSiOMETNzZOuEeWCPJgmf70dO5pJkr7A6lifL5 _znWsqOnW_Sw_O1XBBgcU7C3H.7tW4IEhcJXa5eIdihsRxxs_0UzU0wN1OD6gGmzzvsc3HJlww6Q VWJaZwGF7SuHeg.PzqaAunfRMzCOlD4yfiRCKwTmY2DFZtG7XXBxptEarextncNiER2bBbQKaQS7 PPF0Jefa8ruIlryVQirlXy2xuzLf057AgZVbpOJkgZyB9ypSOCVxfwKPMuAYlh0xm9BIDssG85uh idSs1MovzrVHS.7PTdAQ1lSfd7kOlpv4puOykswwx4xSDm9i3yjWVUxOQCXpch.xQBcgLLxZuUlr dd3q9doGXxCB2oGAD1oVicwAEJDFFsspkzhOPZ0gfn X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Fri, 2 Sep 2022 01:15:11 +0000 Original-Received: by hermes--canary-production-sg3-6bb8946c47-ts4tq (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 139f64de02412a6a26b1acd666099df5; Fri, 02 Sep 2022 01:15:04 +0000 (UTC) In-Reply-To: <87edwvqi16.fsf@gnu.org> (Tassilo Horn's message of "Thu, 01 Sep 2022 15:48:43 +0200") X-Mailer: WebService/1.1.20595 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:241282 Archived-At: Tassilo Horn 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.