From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#50269: 27.2; Request: use GTK continuous scroll events for smooth touchpad scrolling Date: Wed, 01 Sep 2021 16:49:39 +0300 Message-ID: <83a6kwqubw.fsf@gnu.org> References: <83ilznj57n.fsf@gnu.org> <83a6kykc7p.fsf@gnu.org> <58354f61-70c9-0098-226b-cd086efea1f5@gmail.com> <837dg2kanc.fsf@gnu.org> <1df288ac-476b-eee0-88bf-482736ac0823@gmail.com> <83fsupu7ui.fsf@gnu.org> <87y28hing6.fsf@gmail.com> <83a6kxsh4p.fsf@gnu.org> <81dc0bde-146d-d2f2-9098-35918dc1e565@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36263"; mail-complaints-to="usenet@ciao.gmane.io" Cc: kevin.legouguec@gmail.com, 50269@debbugs.gnu.org To: Alexander Huntley Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 01 15:50:15 2021 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 1mLQd4-0009BY-ON for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Sep 2021 15:50:14 +0200 Original-Received: from localhost ([::1]:40862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLQd2-0002Ke-Eh for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Sep 2021 09:50:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLQct-0002KW-9g for bug-gnu-emacs@gnu.org; Wed, 01 Sep 2021 09:50:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53399) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mLQcs-00069L-La for bug-gnu-emacs@gnu.org; Wed, 01 Sep 2021 09:50:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mLQcs-0007Fm-FP for bug-gnu-emacs@gnu.org; Wed, 01 Sep 2021 09:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Sep 2021 13:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50269 X-GNU-PR-Package: emacs Original-Received: via spool by 50269-submit@debbugs.gnu.org id=B50269.163050419827862 (code B ref 50269); Wed, 01 Sep 2021 13:50:02 +0000 Original-Received: (at 50269) by debbugs.gnu.org; 1 Sep 2021 13:49:58 +0000 Original-Received: from localhost ([127.0.0.1]:36712 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLQco-0007FJ-4r for submit@debbugs.gnu.org; Wed, 01 Sep 2021 09:49:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLQcm-0007F4-ES for 50269@debbugs.gnu.org; Wed, 01 Sep 2021 09:49:56 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49734) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLQch-00061Y-6C; Wed, 01 Sep 2021 09:49:51 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3492 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLQcf-0002DP-DU; Wed, 01 Sep 2021 09:49:50 -0400 In-Reply-To: <81dc0bde-146d-d2f2-9098-35918dc1e565@gmail.com> (message from Alexander Huntley on Wed, 1 Sep 2021 13:57:46 +0100) 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:213188 Archived-At: > From: Alexander Huntley > Cc: Kévin Le Gouguec , > 50269@debbugs.gnu.org > Date: Wed, 1 Sep 2021 13:57:46 +0100 > > > So if pixel-resolution-fine-flag is set, the behavior is the expected > > one, and we can conclude that Emacs passes this test? > > If the flag is set to 1, then yes the scrolling works as desired, but only > when scrolling with the touchpad slowly (although perhaps it is scrolling > by 2 or 3 pixels instead of only 1). That's good to hear, thanks. > When scrolling quickly, Emacs scrolls abruptly by many lines at a > time, which is not what we want. I'm sure this is possible to disable. I'm guessing that the touchpad has some customization control, which could control how it reports fast scrolling to applications. Emacs has similar controls in the variables mouse-wheel-scroll-amount and mouse-wheel-progressive-speed. I suggest to try playing with these Emacs options and perhaps also with your touchpad controls, and try to find the configuration that supports fast scrolling as well. > IMO the best way to solve this would be to use GTK scrolling events. They > give the correct magnitude of the scroll event (which in touchpads is > variable and much smaller than for mouse wheels). Hence Emacs would not > have to distinguish between mouse vs touchpad scrolling; it would all > be handled by GTK. AFAIU, this can only be possible in the upcoming PGTK configuration of Emacs, if at all. But I urge you to try customizing the options I mentioned above, because perhaps you could have what you want much sooner and easier than by waiting for PGTK to hit the streets.