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: Tue, 31 Aug 2021 15:17:09 +0300 Message-ID: <83fsupu7ui.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25949"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50269@debbugs.gnu.org To: Alexander Huntley Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 31 14:37:48 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 1mL31Q-0006YR-N3 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 31 Aug 2021 14:37:48 +0200 Original-Received: from localhost ([::1]:40894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mL31O-0004bj-Rf for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 31 Aug 2021 08:37:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60794) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mL2iI-0006D8-Mf for bug-gnu-emacs@gnu.org; Tue, 31 Aug 2021 08:18:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49918) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mL2iI-0006Ed-FQ for bug-gnu-emacs@gnu.org; Tue, 31 Aug 2021 08:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mL2iI-0008V7-C1 for bug-gnu-emacs@gnu.org; Tue, 31 Aug 2021 08:18: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: Tue, 31 Aug 2021 12:18: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.163041224532631 (code B ref 50269); Tue, 31 Aug 2021 12:18:02 +0000 Original-Received: (at 50269) by debbugs.gnu.org; 31 Aug 2021 12:17:25 +0000 Original-Received: from localhost ([127.0.0.1]:33231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mL2hh-0008UE-2L for submit@debbugs.gnu.org; Tue, 31 Aug 2021 08:17:25 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44276) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mL2hf-0008U0-Dt for 50269@debbugs.gnu.org; Tue, 31 Aug 2021 08:17:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60942) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mL2ha-0005nW-7z; Tue, 31 Aug 2021 08:17:18 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4063 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 1mL2hZ-0007Oq-OK; Tue, 31 Aug 2021 08:17:18 -0400 In-Reply-To: <1df288ac-476b-eee0-88bf-482736ac0823@gmail.com> (message from Alexander Huntley on Mon, 30 Aug 2021 22:26:45 +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:213095 Archived-At: > From: Alexander Huntley > Cc: 50269@debbugs.gnu.org > Date: Mon, 30 Aug 2021 22:26:45 +0100 > > pixel-scroll-mode may shift the display one pixel at a time, but it > also "snaps" the display to certain larger intervals, (integer numbers > of lines). I don't think I follow: what is this "snapping" you are alluding to here? Can you tell me how to reproduce this snapping, so I could understand better the problem you have in mind? > If we could use the more precise/frequent data actually coming from > the touchpad, then the user could control the scrolling more precisely: > instead of scrolling by n lines, the user could scroll by as little > as a single pixel at a time. The scrolling, whether pixel-wise or not, is performed by the Emacs display engine; the scroll commands themselves just tell the display engine where in buffer text to start the display of a window, and with what "shifting offset" in pixels to display that text. So I don't see how using some different/more precise data will help, if all that data tells Emacs is by how many pixels to scroll, because the actual scrolling will still be performed by the same display engine. If the display engine is unable to scroll smoothly, for some reason, using different data source to compute how many pixels to scroll will not help. So we must first understand what is wrong with pixel-scroll-mode, because all it does with the "normal" (a.k.a. "imprecise") scroll commands coming from the touchpad is compute how many pixels to scroll, and the default is AFAIR to scroll a small number of pixels per wheel notch (you can customize it to make it exactly 1 pixel). Therefore, I hope you could help us understand what is wrong with the pixel-wise scrolling in the display engine, as it is used by pixel-scroll-mode. TIA.