From: JD Smith <jdtsmith@gmail.com>
To: Po Lu <luangruo@yahoo.com>
Cc: Eval EXEC <execvy@gmail.com>, emacs-devel <emacs-devel@gnu.org>
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 [thread overview]
Message-ID: <D003BEB2-A5F9-4CB6-8F8D-FBC5494B56E8@gmail.com> (raw)
In-Reply-To: <87frqgte44.fsf@yahoo.com>
> On Sep 3, 2024, at 9:13 PM, Po Lu <luangruo@yahoo.com> wrote:
>
> JD Smith <jdtsmith@gmail.com> writes:
>
>> Unfortunately this package only works on the Carbon emacs-mac port,
>> which exposes rich scroll events with pixel-level delta data.
>
> 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?
Will take a closer look, thanks.
next prev parent reply other threads:[~2024-09-04 1:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-03 9:56 [Emacs Master d277123f4bf] pixel-scroll-precision-scroll-up-page feels pause, but pixel-scroll-precision-scroll-down-page is smooth Eval EXEC
2024-09-03 18:14 ` JD Smith
2024-09-04 1:13 ` Po Lu
2024-09-04 1:56 ` JD Smith [this message]
2024-09-04 2:32 ` Po Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D003BEB2-A5F9-4CB6-8F8D-FBC5494B56E8@gmail.com \
--to=jdtsmith@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=execvy@gmail.com \
--cc=luangruo@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.