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#68050: 29.1; Pixel scroll doesn't work on platforms that do not expose device-class. Date: Wed, 27 Dec 2023 09:25:49 +0800 Message-ID: References: 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="4036"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 68050-done@debbugs.gnu.org To: Jared Finder Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 27 02:27:31 2023 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 1rIIhm-0000qA-Ub for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Dec 2023 02:27:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rIIhO-0004cK-Hq; Tue, 26 Dec 2023 20:27:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rIIhM-0004bZ-50 for bug-gnu-emacs@gnu.org; Tue, 26 Dec 2023 20:27:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rIIhL-00030F-RD for bug-gnu-emacs@gnu.org; Tue, 26 Dec 2023 20:27:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rIIhJ-0004Ij-UF for bug-gnu-emacs@gnu.org; Tue, 26 Dec 2023 20:27:01 -0500 Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Dec 2023 01:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 68050 X-GNU-PR-Package: emacs Mail-Followup-To: 68050@debbugs.gnu.org, luangruo@yahoo.com, jared@finder.org Original-Received: via spool by 68050-done@debbugs.gnu.org id=D68050.170364039616491 (code D ref 68050); Wed, 27 Dec 2023 01:27:01 +0000 Original-Received: (at 68050-done) by debbugs.gnu.org; 27 Dec 2023 01:26:36 +0000 Original-Received: from localhost ([127.0.0.1]:35179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIIgt-0004Hv-QP for submit@debbugs.gnu.org; Tue, 26 Dec 2023 20:26:36 -0500 Original-Received: from sonic308-10.consmr.mail.ne1.yahoo.com ([66.163.187.33]:43826) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIIgr-0004Hf-HF for 68050-done@debbugs.gnu.org; Tue, 26 Dec 2023 20:26:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1703640388; bh=5RW4ZD2MDsL84wVh7ug4OVtVHPuOFOIEl89EcVrb43Q=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=NU9XKPAc55NbaLTpfXVLYAswpJD7/gxS3IZCXP6A0IcpBPLuzxkUBZo7O9oUPCP14q1aQeDsNmXUWVqp+5J9R4ACPDPXp0MRosdoLHeSd9XitAnS7EimU+3t8pXmk6YMR8Ukd9yQKm+OEf2Q56Bri7a/u7JRHqPxXiJTAfcqe907A9NZgwKe1tYBwZ0/V4sJUCtBEmMWhwxpsAvLYcklAF3HhX2H3tS2ODtrSACwO7UuI9ScFZH8JaWeiueV6UVLsgUhBvBKNIzC/TvAuvxxd/ni2CRMMga9U1s94iQy7Vo8ScGBtkCU+bA720X78aJbeww8lTwKdW9U0UY2VuBHFg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1703640388; bh=c5buT2qao2GYeCo/CFaty7yE6r0OFm/OHjuP4w54UDI=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=P6Q5wQd9ThQkmHtDLF7sZ06D+kd5vuG/d7WkkXApTx8kDSV3QkGOVVNr/fjPRYGeX/GQNDYkH+rwSFnmjvKHPq0/zJvLtpaouI8dVFjcteyr6qN6vr3D9BtBkyv6FJgfU9QfFmbvno3ueWPKihxObS82mC+XgKVbUxFN26IrjLYsCLbBqSPbbLV0nJs/wMb4vpITuX4Urk/O6lS9t0d77c34pJDtILWZcrrfiGCMg/BhPvAcISJ8M6Uee9C04xa9l5SfwR1xhbRYqH/ZKrDyHoQq868QoQkM/Yqrcd2Rk5jy8NZgHaFG7Lhs4mkjQW7w8hVx36Y6G0pvwvgLc/c8EA== X-YMail-OSG: iYO.3eUVM1lgqxDn3bRt10n5jF5QvWZpppI5EjxUVS_wIFb4tHCR871HTLopvJ1 rqF7T61qkhg_47hkMOFKhslrMcrGE_6mcuBZlJOaV3GM5Ut_VcOxmcI8gsxGOdidvMXw822D7YNv rPk1OrPBtF1ok.X3MlHprUIV5AYfBeNBBb.rBP8uYh0eKI6lK9sPqMOPtnk0_1hLa9e2D42Y82Tq 53NqulUbqS45EdBRXGKIGJqFA0ZQjJuZS6pUNXuFz0KVKm3nYziu1Lc9_4pZlIEAA58FPfSpRRir Fyce4zo8H7Obf_2o1s75eM1MDTn05_OAlJe9uIpUHZgtL3NCQzuFoCw5goImK7eEV5yavuWlwqul UC.XIeprSQkjK9.JEhW3lS6G9evpvBNMMfECT2cBTWE8LVVQ4798UM8PCsbqo_jCxHiviPP38D5C juGFy1PSV.mtJDC1uNxJrS1f0wejQWeVKIZR2q2Uqk77ec6ysI7xSfk5sGVrx6Ss7oZfUzaRQCNq H35MDgQSyx6ZHoMafYZ8hgz6LLOV46lZF7pBgShZGJYEao52b8PxJJGgi5Nm_kk3COiDZ8hzgvYg v5rLnxZxCMbJyCmn777eCzlwsEJ7kPKc0A6q4W9n7luE1oLYlZR8LQgcqzDCp3Wu_S.3HaKJA2IU 3fYNXUWuzP8abkfbv7XH5o8QPGNdxshf3uh6PTH8I_sdyHE7xRWivpRXbf6RDk.a0K0MQUaVc1N. vlrmKHmZ.ZiE6vePdYWiiyVRLnFjGPJQDuNMdY9NPRqw.HyvaQdUCspUcOxH_EGKuKlyihGDUMuM H1k39dWsXCsBrJr.FByoMLZqwx7_LFWQ0JThJzn3BC X-Sonic-MF: X-Sonic-ID: 55e1dc37-1a9e-448a-b8e9-63019bc79585 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ne1.yahoo.com with HTTP; Wed, 27 Dec 2023 01:26:28 +0000 Original-Received: by hermes--production-sg3-65d57d948b-bq97j (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID d1ecfce02e7b0e067c146be68592f17e; Wed, 27 Dec 2023 01:26:23 +0000 (UTC) In-Reply-To: (Jared Finder's message of "Tue, 26 Dec 2023 13:01:30 -0800") X-Mailer: WebService/1.1.21952 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:276925 Archived-At: Jared Finder writes: > Pixel scroll does not work on many platforms, such as Windows and Mac as > they only expose device classes core-keyboard and core-pointer. > Additionally, I have found that for Wayland under WSL on the emacs-29 > branch, both the touchpad and the mouse are reported with device-class > 'mouse on my Thinkpad laptop. Incidentally we don't support WSL, as circumventing their bugs for a proprietary platform which Emacs already supports through the Cygwin and native Windows builds is an unjustified burden. > The attached patch enables a user to specify arbitrary device classes > that should cause interpolated scrolling so they can fix any issues. > This enables a user to customize this to the behavior of their local > machine. > > I am undecided if this should involve renaming the existing > pixel-scroll-precision-interpolate-mice option or if it is important to > stay backward compatible with customizations that changed that option > from its default, t, to some other non-nil value. Please give feedback > here. > > Otherwise, this is a straightforward change that I think would be good > for the Emacs 29 branch so all platforms can get the smoothness of > interpolated pixel scrolling. pixel-scroll-precision-mode is first and foremost designed for devices such as touchpads, for which interpolation is unnecessary as detailed scrolling deltas are always reported within events they generate. Interpolation for wheel mice is an afterthought, so to speak, and if the code responsible for interfacing with the window system cannot detect wheel mice by itself, then the option pixel-scroll-precision-large-scroll-height might be set to a value suitable for wheel mice to be distinguished from touchpads and for interpolation to be applied to them. When a predicated fallback mechanism is already in place, there's no need for one that's far more coarse. Furthermore, p-s-p-l-s-h can be set to 0, which would be identical to setting this variable to t. Thanks, but this isn't necessary. Closing.