From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Touchscreen support Date: Sun, 19 Dec 2021 17:24:14 +0800 Message-ID: <8735mp9cch.fsf@yahoo.com> References: <87czlxkntg.fsf.ref@yahoo.com> <87czlxkntg.fsf@yahoo.com> <87mtkziwhi.fsf@yahoo.com> <87wnk3h0hn.fsf@yahoo.com> <877dc2xsjn.fsf@gnus.org> <83y24i9diw.fsf@gnu.org> <877dc1cug5.fsf@yahoo.com> <834k759fkp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36145"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: larsi@gnus.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 19 10:25:24 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mysRY-0009F7-29 for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Dec 2021 10:25:24 +0100 Original-Received: from localhost ([::1]:33246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mysRW-00059g-B9 for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Dec 2021 04:25:22 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mysQe-0004Sx-9g for emacs-devel@gnu.org; Sun, 19 Dec 2021 04:24:28 -0500 Original-Received: from sonic301-31.consmr.mail.ne1.yahoo.com ([66.163.184.200]:36980) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mysQc-0004yG-Po for emacs-devel@gnu.org; Sun, 19 Dec 2021 04:24:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639905865; bh=RLUmqD6fu7Mln9iL+0U1owGLH11J9TNFs7C4VdxOX+M=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=Jw66DL1aW2rNPVkCtjKLup4lTViLJCIgU5BKUmXXzaHt4MQ7SI3qFRk3/22boegSG/xKkiLb62YtD+5lig8RTcATE//V9J/Z/0kfr5Y3kSR5qjf1yQ3CdzGV63epssOwX5oCjgYPi2uOMy9EdTDqE6gGHVKBacPe9xBSOep154YTh4BOlF5A8Dsj0ijokZJcKDZo00zw/2oTWUr3ttKR1lvDBonJ22TJQ01L84d4odyFWcMblNSl/4AvESa0D57V9iR96A4A82dyQPCL3VNrSBqQ4Dg8bALIx8HWKOPxESRGgzwA3VS0JvhZGT46+njPiOnO7ffF+52xG/DNBR7qLA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639905865; bh=F7PZntpy2syPUK+jqizZ3A37+wLByVfOpZls2jonkiH=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=fQp+w/D8XULyZXk9PXgvHKVzbThrZ/JD83z47ZilEP136Dgjb8h8fLNLi8zTAD4O6N0y1YxjqDtzgpFSOsiYFzBHH9O1aUFJJmC1niir+yd54prkTDrfxM2LkrvqhWv+Xx/Fv4Ub/1nKufN5bvHUmWUfGk8FLqZHRCH2IiNL91XPp6ictQi5OHvCvZb8nwIRN+/9ck3DDtSUAFJ4EkiP/Eb9J6kPvNmz2aGwEFOQkV91mZoYJU7zup0Xmr6IoTiDZtmjf5P/PDEynFzF7y58lQ19572tHS0FlEwO1k7ac+qsaVNHWY+ZosMSRXfNj3LPwNu5gvHId3lGce0yUWMTzg== X-YMail-OSG: xCFMmEYVM1naouhwilKwfY7g0KzgHgehul9TGns7t3OpVUC7HN7VOlmx3cxtr8w Y8Do4gV2DCZdmz7_F6kT2fthxkvsx3CCtgOr6ekuprgF.EWkHYZ2XZ6ZARclWNrB59jwfOieXsAx MJ8wfH3gF1Ndn.9C4Or0kh0jlCIub98eB44_3G9ZCQ4xlo2uSw_XqetmNZa0rFbZnoOntqk0DVsX ZeRlaprBaUA.OyDw16sjWVbrXBUG8jLg1VPY9I84aqn2Uo8vJRDXikonR5G20J03nh4_zdcshkrQ ur6HmZ_ZbHtGUZDVLhZOA2_vv7lYlYkzTlfOJRZLNTkzpEA_aVSQ53zfEwAJxI0p_Ye8qwsl6apA ifFTb0_0Lgv0kVcqYLFRPj9mt5W9zQrMqceOkZ7wl4wb9Xm_pfhgeThlmbP43pCbUd5o9W0T3RRD 0_C.x9DhuSROGj1PMtV4UvNkCeKWAbZvrE_SsVn6k4Z6q3RvH_xUTWqByT3UvA3sakATiTcIofKw sLFtNjE96FdERwY30cV1pckRaGIplYhyK4.e.earomMi1zGRVb_Lo2o.sKL0r3M8lEJj7Yo9pvm5 WVAZsY51CiK214PFztr5yZSDlyZ36OW3XyFEpdA0V24pyGmDpC3o449CflRlaMTopGdVvh00v5TY Y2yaUJQ.4aODrpA2M5nEOoM3rs.R2wCLdCA.BFL6DbW.aaAoa7CWexwnVp5.SVu3ulzSJeTus.hf K.qTTzxSVss7vFqA2zT6qRvRlEa30zJ3wsXlJlxPOP33JQ07fJtmuZma48SNjNkt99.sLmAdfLVw RKgh9fuoR5J_ea7uWPmjOYPAk.T4ZowOs8x1AYw8w1 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Sun, 19 Dec 2021 09:24:25 +0000 Original-Received: by kubenode504.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 9e3673f2984c0fc4dac9c1812e465a5c; Sun, 19 Dec 2021 09:24:19 +0000 (UTC) In-Reply-To: <834k759fkp.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 19 Dec 2021 10:14:30 +0200") X-Mailer: WebService/1.1.19498 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.200; envelope-from=luangruo@yahoo.com; helo=sonic301-31.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:282389 Archived-At: Eli Zaretskii writes: > If you do it in Lisp, it will be hard to use on other platforms, where > the higher-level abstractions are reported on the level of the > window-system events. [...] > I don't think so, although I'm far from being an expert. I see it > provides the gesture-begin and gesture-end events, but not > gesture-update; instead, the "cooked" gestures are provided which are > already constructed from lower-level events. The MS documentation > clearly says: > > Note Most applications should ignore the GID_BEGIN and GID_END > messages and pass them to DefWindowProc. These messages are used by > the default gesture handler. Application behavior is undefined when > the GID_BEGIN and GID_END messages are consumed by a third-party > application. > > So they advise against using the low-level events. > In any case, it makes no sense to me to "decompose" events that are > already composed into meaningful gestures. We should be able to use > those higher-level abstractions when they are provided. The difference is that those higher-level abstractions vary too much for us to abstract around usefully. (The GTK one is also very painful, for unrelated reasons.) I think that's why Mozilla Firefox and other cross-platform programs that have to handle touch events rely on their own machinery for this stuff opposed to the platform-provided one. We would have to limit ourselves to only handling tap events and only sending them when the finger is lifted, if we were to rely on the lowest common denominator of all those different abstractions.