From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alexander Huntley Newsgroups: gmane.emacs.bugs Subject: bug#50269: 27.2; Request: use GTK continuous scroll events for smooth touchpad scrolling Date: Wed, 1 Sep 2021 13:57:46 +0100 Message-ID: <81dc0bde-146d-d2f2-9098-35918dc1e565@gmail.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21097"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 Cc: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec , 50269@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 01 15:08:26 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 1mLPyb-0005Mr-Ua for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Sep 2021 15:08:25 +0200 Original-Received: from localhost ([::1]:37688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLPya-0001zR-T5 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Sep 2021 09:08:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42174) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLPoY-00040C-L6 for bug-gnu-emacs@gnu.org; Wed, 01 Sep 2021 08:58:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53324) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mLPoY-0000Ca-Dk for bug-gnu-emacs@gnu.org; Wed, 01 Sep 2021 08:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mLPoX-0005v4-V9 for bug-gnu-emacs@gnu.org; Wed, 01 Sep 2021 08:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alexander Huntley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Sep 2021 12:58:01 +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.163050108122739 (code B ref 50269); Wed, 01 Sep 2021 12:58:01 +0000 Original-Received: (at 50269) by debbugs.gnu.org; 1 Sep 2021 12:58:01 +0000 Original-Received: from localhost ([127.0.0.1]:36636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLPoW-0005uh-Lb for submit@debbugs.gnu.org; Wed, 01 Sep 2021 08:58:00 -0400 Original-Received: from mail-wr1-f54.google.com ([209.85.221.54]:37482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLPoV-0005uT-Ef for 50269@debbugs.gnu.org; Wed, 01 Sep 2021 08:57:59 -0400 Original-Received: by mail-wr1-f54.google.com with SMTP id v10so4374813wrd.4 for <50269@debbugs.gnu.org>; Wed, 01 Sep 2021 05:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=Q/GIBb6DqK4qb9yWRZo1z8B6ysWeKDRQbl8QckE1UL0=; b=g99r2L2WroiUE5V3wr1JInAc8InaOPpTbgNg94PYlDHrV3b1Ln19EdxGQV+rh6fVAT s7A070h0z1I3tSeqiOrPIf7MNMSdngwlncAYrf9vb40wCS1+zUxd0ISqL/Rl87/pQFsX sthlBvVB7TxDJn1qE5Tw/iXVQ7nG4dDOYHHqj61Om8UhCETHUIyjKYfGUPouF4GaFrnF W6ds31fhFSTWCBAmzHDpHWlNyPSf4O6alyAIyPKo8dn5rDRs1lN7seXo+uFr8EizAykw wgmiDe1soyoZXnc7PHZAA4WhB4o/11XGluAZLsKlxzLtqYkriVQW29a9hDGkoIBa4FiT Ng6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:cc:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=Q/GIBb6DqK4qb9yWRZo1z8B6ysWeKDRQbl8QckE1UL0=; b=N0qLAcMdO/EO2bUnxmfqRQb+spHb8cyKSPNKVPaP/vSSMy4CmEQWCUT0ab402rApuN Cujk76vZk7sNW8YMzhX+ZFnfoi89Gwk/vBlbJ+sKIi2j+NXAaeUyEknXcbsGc7aQRk90 +lG8a2siCcbUaIvqPGDkq6wWZXeizqkZZR7d9RpsCifhAXp3hf9T+d5sACq9zAjoq6sX Blcm31ioUGpnvmnXBTPz23vJRtw3hwy7gqionnc6P4ShpIs9lHfR6RDhGq76+ctvUnpR AQAJvrdeSZ91dWa3IfPgm+RloYgkIfnSc5v/Jk+TmbPf7weiJIAUkD1G57gZeSphmA3r LqQA== X-Gm-Message-State: AOAM530euD/7I031bqOgP1k5/qlijBaGkJmfEMwdgpiARLheAvQB/tjV xnX60NLzlXVhvgUN4/z/dd4YlSOtXjAAYTrl X-Google-Smtp-Source: ABdhPJwP5j0E2MML8NftObxWezvUbhavWOPgyopvNWF2a9L3OnOHp75MaEXECbRhE+cShdyAYqceFA== X-Received: by 2002:adf:9f4d:: with SMTP id f13mr18608393wrg.169.1630501073220; Wed, 01 Sep 2021 05:57:53 -0700 (PDT) Original-Received: from ?IPv6:2a00:23c6:1c03:8200:59a:fc7b:71d1:dfd7? ([2a00:23c6:1c03:8200:59a:fc7b:71d1:dfd7]) by smtp.gmail.com with ESMTPSA id v5sm22208807wru.37.2021.09.01.05.57.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Sep 2021 05:57:52 -0700 (PDT) In-Reply-To: <83a6kxsh4p.fsf@gnu.org> Content-Language: en-US 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:213181 Archived-At: >> With pixel-scroll-mode on, when pixel-resolution-fine-flag is nil (the >> default), I cannot get Emacs to scroll up by "just a few pixels", >> however small my movement on the touchpad. Emacs always waits for >> "enough movement" to scroll up a complete line, although the *animation* >> is indeed done pixel-by-pixel (as opposed to line-by-line when >> pixel-scroll-mode is off). >> >> On e.g. Mousepad (XFCE's text editor), if I move "just a bit" on the >> touchpad, the display moves by "just a few pixels", i.e. less than a >> full line. FWIW setting pixel-resolution-fine-flag to 1 seems to allow >> Emacs to do the same. > 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). 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. But now scrolling with a mouse wheel also only causes the view to shift by 1 pixel per "wheel click". 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.