unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: Po Lu <luangruo@yahoo.com>, Aaron Jensen <aaronjensen@gmail.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: pixel-scroll-precision-mode very slow on macOS with regular mouse wheel
Date: Wed, 08 Dec 2021 11:36:49 +0000	[thread overview]
Message-ID: <11E1EC35-D491-452E-8F61-77EAC42420DE@idiocy.org> (raw)
In-Reply-To: <0D3D292D-8755-40B5-A452-B53691DB5A56@idiocy.org>



On 8 December 2021 11:35:18 GMT, Alan Third <alan@idiocy.org> wrote:
>
>
>On 8 December 2021 05:48:47 GMT, Po Lu <luangruo@yahoo.com> wrote:
>>Aaron Jensen <aaronjensen@gmail.com> writes:
>>
>>> macOS scrolling w/ a mouse wheel has acceleration. If I scroll slowly,
>>> it goes very slowly, 1 tick is a couple pixels. If I scroll quickly I
>>> can go through a whole page in a handful of ticks. 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.
>>
>>But I suspect I misunderstood how those deltas work.  They might be
>>reported as portions of an abstract unit, instead of in pixels, which is
>>the case with precise deltas.
>>
>>In that case, we will have to scale those deltas by some method, but I
>>don't know what TRT is for macOS.
>
>Apple's docs say multiply them by the line height, so a delta of 1.0 should scroll one line. You deleted the comment in the code that explained that.

Sorry, I see now that the comment is actually still there.
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



  reply	other threads:[~2021-12-08 11:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-08  4:17 pixel-scroll-precision-mode very slow on macOS with regular mouse wheel Aaron Jensen
2021-12-08  4:38 ` Po Lu
2021-12-08  4:43   ` Aaron Jensen
2021-12-08  5:48     ` Po Lu
2021-12-08 11:35       ` Alan Third
2021-12-08 11:36         ` Alan Third [this message]
2021-12-08 11:42           ` Po Lu
2021-12-08 21:26             ` Alan Third
2021-12-10  4:09             ` Aaron Jensen

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=11E1EC35-D491-452E-8F61-77EAC42420DE@idiocy.org \
    --to=alan@idiocy.org \
    --cc=aaronjensen@gmail.com \
    --cc=emacs-devel@gnu.org \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).