From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jared Finder 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: Tue, 26 Dec 2023 17:32:54 -0800 Message-ID: References: Reply-To: Jared Finder Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30638"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68050-done@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 27 02:33:21 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 1rIInR-0007ed-G5 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Dec 2023 02:33:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rIInD-0005Cy-A6; Tue, 26 Dec 2023 20:33:07 -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 1rIInA-0005BF-Kr for bug-gnu-emacs@gnu.org; Tue, 26 Dec 2023 20:33: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 1rIInA-0004AC-DJ for bug-gnu-emacs@gnu.org; Tue, 26 Dec 2023 20:33:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rIIn8-00075F-Dc for bug-gnu-emacs@gnu.org; Tue, 26 Dec 2023 20:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jared Finder Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Dec 2023 01:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68050 X-GNU-PR-Package: emacs Original-Received: via spool by 68050-done@debbugs.gnu.org id=D68050.170364077727213 (code D ref 68050); Wed, 27 Dec 2023 01:33:02 +0000 Original-Received: (at 68050-done) by debbugs.gnu.org; 27 Dec 2023 01:32:57 +0000 Original-Received: from localhost ([127.0.0.1]:35187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIIn2-00074q-PA for submit@debbugs.gnu.org; Tue, 26 Dec 2023 20:32:57 -0500 Original-Received: from greenhill.hpalace.com ([192.155.80.58]:46580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIImz-00074g-Vg for 68050-done@debbugs.gnu.org; Tue, 26 Dec 2023 20:32:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=finder.org; s=2018; t=1703640774; bh=s0KYp9DliF4svB/DuIW+mLElC90+f/0xjwlmGFzGJQc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=wTUzwfe5RZWg4jvVrHE99/imyN9qVRfGfsDK4uloI0f3VIwNToPtgOsJj31gL1XDI NbxDPJABM36OAzB1JUHw+fTVqw9+xihkeKEe6wfxU0kDC3E0ToO9SFZHzflfV9ThYW 4oCIrmkFgCS2zIn4LADjKjKINtlGRAfBC6sHpxIN5pdJbPMeEvILuQHWrFEAXII81R I/vjpi8IvooWBmbLeiELk6sdZBFq2grKFcrOJ7P6MFYrzLDB4uKUREMtJPYoj3FFD1 uK44WE5l6bhCINKHao4VGsEiF/R41Eab6IAzDqKSIUynj+hMOFzPji0NZrh/Fvht0O k700tyfsC9ChQ== Original-Received: from mail.finder.org (unknown [192.155.80.58]) by greenhill.hpalace.com (Postfix) with ESMTPSA id 6DB6B1455; Wed, 27 Dec 2023 01:32:54 +0000 (UTC) In-Reply-To: X-Sender: jared@finder.org 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:276926 Archived-At: On 2023-12-26 17:25, Po Lu wrote: > 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. Understood. However, I see the same issue on pure Windows and on Mac as well. >> 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. I'm a bit confused by the "this isn't necessary" response. What should I be doing on Mac or on Windows, where Emacs doesn't distinguish between touchpads and mice currently? Is there a fix in the works for these OSes? -- MJF