all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Po Lu <luangruo@yahoo.com>
Cc: emacs-devel@gnu.org
Subject: Re: master 101bbd1392: Add support for pinch gestures to the XI2 build
Date: Sun, 26 Dec 2021 12:48:52 +0200	[thread overview]
Message-ID: <83ee5zpror.fsf@gnu.org> (raw)
In-Reply-To: <874k6v646q.fsf@yahoo.com> (message from Po Lu on Sun, 26 Dec 2021 18:39:09 +0800)

> From: Po Lu <luangruo@yahoo.com>
> Cc: emacs-devel@gnu.org
> Date: Sun, 26 Dec 2021 18:39:09 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Yes, but you could generate several Emacs events in make_lispy_event,
> > can't you?  Or maybe simply ignore the angle data?
> 
> I meant to say that those angle deltas only make sense as part of a
> pinch event, and they're not supposed to be treated as separate rotation
> events.  (Which we will want to expose to Lisp separately, once the
> XInput developers add support for them.)

Please explain how the angle deltas make sense as part of a pinch
gesture, I don't think I understand that.

> > I don't think I understand how read-event with a timeout will help
> > here: you still get a series of events, AFAIU.
> 
> Yes, but it solves the flickering problem.

That's not the only possible solution, and neither is it the cleanest
one, IMO.

> > Walking the event queue looking a for a series of pinch events is much
> > easier.
> 
> Yes, but limiting the frequency of these events is something not all
> commands might want.

We are talking about the situation that several pinch events were
reported to Emacs since the last time it entered the idle loop and
checked for input.  Which commands do you envision that would like to
process only some of that gesture, and leave the rest in the input
queue?  AFAIU, all it will do is cause some kind of "inertia", in that
the reaction to user gestures will lag after the gestures.  Why would
that make sense?



  reply	other threads:[~2021-12-26 10:48 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-26  7:36 master 101bbd1392: Add support for pinch gestures to the XI2 build Eli Zaretskii
2021-12-26 10:03 ` Po Lu
2021-12-26 10:31   ` Eli Zaretskii
2021-12-26 10:39     ` Po Lu
2021-12-26 10:48       ` Eli Zaretskii [this message]
2021-12-26 11:09         ` Po Lu
2021-12-26 11:28           ` Eli Zaretskii
2021-12-26 11:37             ` Po Lu
2021-12-26 11:44           ` Po Lu
2021-12-26 11:51             ` Eli Zaretskii
2021-12-26 11:53               ` Po Lu
2021-12-26 11:58                 ` Eli Zaretskii
2021-12-26 12:12                   ` Po Lu
2021-12-26 10:42   ` Eli Zaretskii
2021-12-26 10:51     ` Po Lu
2021-12-26 10:55       ` Eli Zaretskii
2021-12-26 10:58         ` Po Lu
2021-12-26 11:01           ` Eli Zaretskii
2021-12-26 11:26             ` 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=83ee5zpror.fsf@gnu.org \
    --to=eliz@gnu.org \
    --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 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.