From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: James Nguyen Newsgroups: gmane.emacs.devel Subject: Re: Touch events Date: Wed, 28 Jun 2017 10:23:43 -0700 Message-ID: <5173660E-BDCC-4FE0-9CC0-CB0042DAE82D@fastmail.com> References: <20170624085335.GA10629@breton.holly.idiocy.org> <20170627200807.GA73858@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_59C380B4-1692-4032-87D5-C1406294EDD0" X-Trace: blaine.gmane.org 1498670672 25459 195.159.176.226 (28 Jun 2017 17:24:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 28 Jun 2017 17:24:32 +0000 (UTC) Cc: Alan Third , Emacs-Devel devel To: Anders Lindgren Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 28 19:24:26 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQGhU-0006IN-Cn for ged-emacs-devel@m.gmane.org; Wed, 28 Jun 2017 19:24:24 +0200 Original-Received: from localhost ([::1]:34446 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQGhZ-0001Z5-CU for ged-emacs-devel@m.gmane.org; Wed, 28 Jun 2017 13:24:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQGgx-0001Yx-Dv for emacs-devel@gnu.org; Wed, 28 Jun 2017 13:23:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQGgu-0000hJ-8x for emacs-devel@gnu.org; Wed, 28 Jun 2017 13:23:51 -0400 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:43007) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dQGgu-0000gb-4E for emacs-devel@gnu.org; Wed, 28 Jun 2017 13:23:48 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 7B18D221AC; Wed, 28 Jun 2017 13:23:47 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 28 Jun 2017 13:23:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=J5mVlevUSgofOPrhKvN/MkJeTHfVOouLGgiwISTxd 00=; b=yNVD8/AykfGXbhC6FVuyw4HAalgminTnl0tU39fThC2VBiVverOqKxF0o bc+YOsxwN8UySjfPPlNxAnhyWOVGRn7FgWkWYsR0m03IxKstNRs7AAutrW8OZjyM AKLk8CAhNmJ+mmQjk92kyUbDnRxL5LwqkIC4DN2jFW5iDmgZfTmFoiwXp8jpl3MO iBBfVPUlpZdqkzN3eI4HbLKQFTHKn63b+Rol2oPs5xm9eQYiVpk068a+gM9fE0aE HFcJr6t/3bPm4KsVs6ukyTYJNjqmNpDJ9xSOsP8tNja9yjLbrr6v1CTWk1iK62RC Y7Lpb04TKIor8pfPkO3gthY2YStVQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=J5mVlevUSgofOPrhKv N/MkJeTHfVOouLGgiwISTxd00=; b=oc00d4H9Ap7ceiDG6+5WSjdJZOp1WDfnyt dihZZwmvxgvw8yqxI1yC8ajQROx18PLD64XywCFx0/1ftvf+KpKySRnpte1TDGeu ptGMvPbhWus5Oei0lb7xm1qduhN5iio2VNIm1ZO++eF4XY0msuo1fN7T9brujPsd nvfcFB9YG7PiTJ3npNqb+RZrduXmeO6DwzDpQbOEnqJ8z8L19Z3eSKLDDfZEcZaK qD36K2L9vPqbAy/gUMUZ88uS0xOiflWQVJnpsKrQvXm+4dw3OewDZrhI35SJ8Vmh eZ8Vk4f54AtptEBz6U7o/127rPWoMZNYKVFRI3cQqZoty4O2TP2g== X-ME-Sender: X-Sasl-enc: H+UQVeItRNGPxNFMFl/5YxjODDhLaXZ1ecjUkT3icujw 1498670627 Original-Received: from [10.0.1.47] (c-73-231-191-86.hsd1.ca.comcast.net [73.231.191.86]) by mail.messagingengine.com (Postfix) with ESMTPA id 904F07E81C; Wed, 28 Jun 2017 13:23:46 -0400 (EDT) In-Reply-To: X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.29 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:216037 Archived-At: --Apple-Mail=_59C380B4-1692-4032-87D5-C1406294EDD0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 +1, I=E2=80=99ve noticed that too (especially with the pixel-scroll-mode = on OSX). The extra inertia from scrolling causes Emacs to scroll up/down = uncontrollably for 300-400 ms after every scroll. > On Jun 28, 2017, at 2:40 AM, Anders Lindgren = wrote: >=20 > I=E2=80=99ve kept a separate =E2=80=98touch-scroll=E2=80=99 event as = the mac port just embeds > that into the mouse-wheel events, but I feel there=E2=80=99s an = argument to be > made that they should be handled differently. >=20 > 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. >=20 > It would be good to be able to get a single event for swipe commands = (even though the inertia is useful for some commands). >=20 > -- Anders >=20 > 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. --Apple-Mail=_59C380B4-1692-4032-87D5-C1406294EDD0 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 +1, I=E2=80=99ve noticed that too (especially with the = pixel-scroll-mode on OSX). The extra inertia from scrolling causes Emacs = to scroll up/down uncontrollably for 300-400 ms after every scroll.

On Jun 28, 2017, at 2:40 AM, Anders Lindgren <andlind@gmail.com> = wrote:

I=E2=80=99ve kept a separate = =E2=80=98touch-scroll=E2=80=99 event as the mac port just embeds
that into the mouse-wheel events, but I feel there=E2=80=99s 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.

= --Apple-Mail=_59C380B4-1692-4032-87D5-C1406294EDD0--