From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: JD Smith Newsgroups: gmane.emacs.devel Subject: Re: [Emacs Master d277123f4bf] pixel-scroll-precision-scroll-up-page feels pause, but pixel-scroll-precision-scroll-down-page is smooth Date: Tue, 3 Sep 2024 21:56:26 -0400 Message-ID: References: <34bff610-732e-4c52-9574-35a4bab8223d@gmail.com> <73E3A3FA-A1AB-40EB-87B9-80BB8902682A@gmail.com> <87frqgte44.fsf@yahoo.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) 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="31579"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eval EXEC , emacs-devel To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 04 03:57:34 2024 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 1slfH4-00088t-Q5 for ged-emacs-devel@m.gmane-mx.org; Wed, 04 Sep 2024 03:57:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slfGF-0007NT-Bw; Tue, 03 Sep 2024 21:56:43 -0400 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 1slfGD-0007NC-Uq for emacs-devel@gnu.org; Tue, 03 Sep 2024 21:56:42 -0400 Original-Received: from mail-yw1-x1130.google.com ([2607:f8b0:4864:20::1130]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1slfGC-00047N-E6 for emacs-devel@gnu.org; Tue, 03 Sep 2024 21:56:41 -0400 Original-Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-6da395fb97aso21357937b3.0 for ; Tue, 03 Sep 2024 18:56:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725414999; x=1726019799; darn=gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Nwu7eXkTzUAr++mm13RDycSQIrdT4nE84mjwkFb3W8Y=; b=FU3Pff63zgEUGBlY8hXj4XNRCOiKqepUaYSoNb00mw/+ARrOTP93TD93RD+T4AF5vi wW+00LJUCH8sFgJ9fU6dQX/fnrmpclv7McJWic7TZxchs5hHOtGmLTkeSp7Vqv9Q+2MZ 3AFUmEJp6QlZEp8rPWoa35PsLQP0hgmNKDG3v5HV3Kpc2xG9l8wo+UaKfAf0k0ZMGh1k goXO9ygofLiWgmCUkuQkRTXZF8vBJatVTTN4QSwSvhdbWwGOeO/dE8kShkC3ujRe16bj exE39MA83t04th378CnxfO3UYi3RxZttZOn1/dBij7syqbfac9BguwGItXLUPgeJSs9+ svOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725414999; x=1726019799; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Nwu7eXkTzUAr++mm13RDycSQIrdT4nE84mjwkFb3W8Y=; b=MWgmhfcrpS1W/NVKBNg4cCkYo8SvyF4+U9gXw4JWu3/lyLOTS5CPfeFj8sJqw24H34 tkiEpsGReiHncNhvMguTj42ezjBRKwatVEUFRVsWl2dP4f+JQ5qPGAIrFXcAB7IDTSeQ b1qknV9jGQ/y9R5LYnNdwAVjf3sVEPeeS2OnRrDTSqlpHRFwOoK8rBnB6X/QshkobW+m 7JfZ4B+fF0wFmq2HyE6rTcgVI4U7GLWtybQW+18eYu+DDBbxxSYpA369TwiZtz3KJvWA fc0PiDTLrF77cxxcQdH2kWBl/jIxogyxw0+SG0lYakI8kP8/E8Hk1iHMW9XibWYyKqbg ovUw== X-Forwarded-Encrypted: i=1; AJvYcCUd5ke8/nOpyKQALg5avSREMkLPim4Yl9p2mPliReU69JrvGN2oWeoSWPKBt0Mmzl8kWJdf/ThPiF45kw==@gnu.org X-Gm-Message-State: AOJu0YyvoHktGuiy6oxhl8aLGSGe1jqJhRSm6sxyiMbc30OJi1ZsPaSe hVKYKHLJJy7rgygsuN24M5VwVYq4T1rOim+F3FShtuDqjeGJbgoy X-Google-Smtp-Source: AGHT+IEIE9gMGVIrT0raCTiXPCLH7gN2xyIh4s9viM4rPqX6FYDLVykZ011XyMaUSOcmtZNTC/TbgA== X-Received: by 2002:a05:690c:3693:b0:6b1:135:4d84 with SMTP id 00721157ae682-6d40df8a252mr166713147b3.16.1725414998938; Tue, 03 Sep 2024 18:56:38 -0700 (PDT) Original-Received: from smtpclient.apple (cm-24-53-187-34.buckeyecom.net. [24.53.187.34]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7a806d390f0sm582238585a.96.2024.09.03.18.56.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Sep 2024 18:56:37 -0700 (PDT) In-Reply-To: <87frqgte44.fsf@yahoo.com> X-Mailer: Apple Mail (2.3774.600.62) Received-SPF: pass client-ip=2607:f8b0:4864:20::1130; envelope-from=jdtsmith@gmail.com; helo=mail-yw1-x1130.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:323343 Archived-At: > On Sep 3, 2024, at 9:13=E2=80=AFPM, Po Lu wrote: >=20 > JD Smith writes: >=20 >> Unfortunately this package only works on the Carbon emacs-mac port, >> which exposes rich scroll events with pixel-level delta data. >=20 > Really? Emacs has reported this data on all supported platforms since > 29.1, as documented in (elisp)Misc Events. The interpolation > implemented by pixel-scroll.el is not designed for events carrying = this > data but for those generated by mice. Interesting, I actually hadn't seen those new wheel-up/down PIXEL-DELTA = values. They come straight from the system? These are the mouse event properties delivered on Carbon emacs: ;; (nth 3 event) is a plist that may contain the following keys: ;; :direction-inverted-from-device-p (boolean) ;; :delta-x, :delta-y, :delta-z (floats) ;; :scrolling-delta-x, :scrolling-delta-y (floats) ;; :phase, :momentum-phase (symbols) ;; possible value: `none', `began', `stationary', `changed', ;; `ended', `cancelled', or `may-begin' ;; :swipe-tracking-from-scroll-events-enabled-p (boolean) The key of interest is :scrolling-delta-y (a float), which taps directly = into the system scroll amount, as configured in settings (with momentum, = etc.). I had the impression there was nothing equivalent in other emacs = builds, and that was why pixel-scroll-precision has its own elisp-based = "driver". So all the momentum/interpolation code in pixel-scroll is = effectively to allow low resolution mice to simulate high scroll event = rate trackpads? =20 Will take a closer look, thanks.