unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Anders Lindgren <andlind@gmail.com>
To: Alan Third <alan@idiocy.org>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: Touch events
Date: Wed, 28 Jun 2017 11:40:13 +0200	[thread overview]
Message-ID: <CABr8ebbc3cbbGWYxyH0YSQxcF5t_PgNYJg+wz73MDPpKc-w74Q@mail.gmail.com> (raw)
In-Reply-To: <20170627200807.GA73858@breton.holly.idiocy.org>

[-- Attachment #1: Type: text/plain, Size: 1137 bytes --]

>
> I’ve kept a separate ‘touch-scroll’ event as the mac port just embeds
> that into the mouse-wheel events, but I feel there’s an argument to be
> made that they should be handled differently.
>

One thing that has annoyed me with the existing mouse-wheel events is that
macOS sends implements a kind of inertia, resulting is a sequence of events
a few seconds after I've stopped scrolling. Furthermore, if I have pressed,
say, shift while scrolling and release the shift key while the extra events
are arriving, the remaning events are treated as though they were
unshifted, possibly executing a different Emacs command.

It would be good to be able to get a single event for swipe commands (even
though the inertia is useful for some commands).

    -- Anders

Ps. In the package https://github.com/Lindydancer/multicolumn I've
implemented support for moving to next/prev/first/last window using
horizontal swipes. To get around the extra events passed by the macOS, I'm
using timers to silence scroll events for a while after a command has been
handled, which clearly isn't a good technical solution.

[-- Attachment #2: Type: text/html, Size: 1508 bytes --]

  reply	other threads:[~2017-06-28  9:40 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-24  8:53 Touch events Alan Third
2017-06-24  9:33 ` martin rudalics
2017-06-24  9:58   ` Alan Third
2017-06-24 13:18 ` Clément Pit-Claudel
2017-06-24 17:00   ` Lars Ingebrigtsen
2017-06-24 23:22     ` Alan Third
2017-06-24 23:43       ` Clément Pit-Claudel
2017-06-25  0:04         ` Lars Ingebrigtsen
2017-06-25 10:40           ` Alan Third
2017-06-25 16:56             ` Clément Pit-Claudel
2017-06-25 17:04               ` Noam Postavsky
2017-06-25 17:10               ` martin rudalics
2017-06-25 18:09                 ` Clément Pit-Claudel
2017-06-25 19:22         ` Stefan Monnier
2017-06-26 10:08 ` Anders Lindgren
2017-06-26 18:28   ` Alan Third
2017-06-28  8:25     ` John Wiegley
2017-06-28 15:14       ` raman
2017-06-28 20:50         ` Alan Third
2017-09-03  9:14           ` Alan Third
2017-06-27 20:08   ` Alan Third
2017-06-28  9:40     ` Anders Lindgren [this message]
2017-06-28 17:23       ` James Nguyen
2017-06-28 21:06       ` Alan Third

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=CABr8ebbc3cbbGWYxyH0YSQxcF5t_PgNYJg+wz73MDPpKc-w74Q@mail.gmail.com \
    --to=andlind@gmail.com \
    --cc=alan@idiocy.org \
    --cc=emacs-devel@gnu.org \
    /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).