From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: =?US-ASCII?Q?Re=3A_pixel-scroll-precision-mode_very_?= =?US-ASCII?Q?slow_on_macOS_with_regular_mouse_wheel?= Date: Wed, 08 Dec 2021 11:35:18 +0000 Message-ID: <0D3D292D-8755-40B5-A452-B53691DB5A56@idiocy.org> References: <871r2ng186.fsf@yahoo.com> <87sfv3ejeo.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21404"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs developers To: Po Lu , Aaron Jensen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 08 12:36:33 2021 Return-path: Envelope-to: ged-emacs-devel@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 1muvFQ-0005Oh-AA for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Dec 2021 12:36:32 +0100 Original-Received: from localhost ([::1]:55686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1muvFO-0006RL-3r for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Dec 2021 06:36:30 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muvEU-0005jE-TO for emacs-devel@gnu.org; Wed, 08 Dec 2021 06:35:35 -0500 Original-Received: from outbound.soverin.net ([116.202.126.228]:52795) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muvEQ-0005aw-D6 for emacs-devel@gnu.org; Wed, 08 Dec 2021 06:35:32 -0500 Original-Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id ED84AA0; Wed, 8 Dec 2021 11:35:20 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1638963320; bh=0dy81irNjFYSTncFoqZqJTOzkhE08hQo33zsifipB3M=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=G0W/SRlRT/Fz8DzZbYYTcLZam8r2qpne78AePJawAz7MF2Wum0yTcguga4qXe0mc6 Xo6ODriUHCsE8LYapl736MXvhpReVtPOUDEFrTRN88ywTSrBF3wnf+SbEctLxswTd9 Wgwiq+KsTMP2h/GYJNSnSI8XFSWEaYZjPO2685OPsMmoOXXIYVmHKGWwqt4w9CBmWf 4vBPT5ng7rXu3PJC6DnznJG52FT3udjNFfBRDsKrbqzB93P9wbu0zGg7w6kw6AAm+1 saOfhW5VrE+tblXXbf6P6EElxYGY/jD6pSwhUVNEa8ODLOUKazeY1hOB7g6+dN8XoR ap9Nw46nXeAxw== In-Reply-To: <87sfv3ejeo.fsf@yahoo.com> Received-SPF: pass client-ip=116.202.126.228; envelope-from=alan@idiocy.org; helo=outbound.soverin.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:281336 Archived-At: On 8 December 2021 05:48:47 GMT, Po Lu wrote: >Aaron Jensen writes: > >> macOS scrolling w/ a mouse wheel has acceleration=2E If I scroll slowly= , >> it goes very slowly, 1 tick is a couple pixels=2E If I scroll quickly I >> can go through a whole page in a handful of ticks=2E Perhaps that >> mechanic would need to be replicated? > >I don't understand what you mean by that: when precision deltas are not >available (which is the case with your mouse), Emacs uses the fallback >deltas provided by macOS, which should be sufficient for our purposes=2E > >But I suspect I misunderstood how those deltas work=2E They might be >reported as portions of an abstract unit, instead of in pixels, which is >the case with precise deltas=2E > >In that case, we will have to scale those deltas by some method, but I >don't know what TRT is for macOS=2E Apple's docs say multiply them by the line height, so a delta of 1=2E0 sho= uld scroll one line=2E You deleted the comment in the code that explained t= hat=2E --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E