From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Touchscreen support Date: Sun, 19 Dec 2021 11:32:40 +0200 Message-ID: <83y24h7xdz.fsf@gnu.org> 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> <8735mp9cch.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34827"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 19 10:34:08 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 1mysZz-0008tZ-LA for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Dec 2021 10:34:07 +0100 Original-Received: from localhost ([::1]:37900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mysZy-0000HZ-6K for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Dec 2021 04:34:06 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59434) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mysYm-0007yk-FP for emacs-devel@gnu.org; Sun, 19 Dec 2021 04:32:52 -0500 Original-Received: from [2001:470:142:3::e] (port=56960 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mysYm-00067h-3Z; Sun, 19 Dec 2021 04:32:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=dfQWp9JjNpYNOPS6j/fQKW5rVE5eaSz4hB+9BmKkZTk=; b=dwsAOltjXMdT 300e4GCOEFBd+BQ8SoAZZaWy+66pRYIJuXbRFARogNywpMTHYuMu8KOwJZhQwwuNile/jYkAkr5np D7qXvWaCIq++gsIjhNQxL/UojDI4Tyx+Qa5b9L07CBOFvwj2D4PrWAQQceqeKi04YICoQY/VWQ5+e F5rmZItjz0NH0edWHH79iVUFZJN9wvkOIljWyJYu7w/U2s4CetPs/V7v2eAbws0QGyTgJrsA5LTOw TuJomFr5VDeJZmx4ZnXfcrD+fMcAp96+bYhqVfwXTehOF/PiqaMiyKlJF6OU8CYbvsImZ5JFMoJLd UjxsZcZ4kGKQ820NfcHm5A==; Original-Received: from [87.69.77.57] (port=3893 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mysYj-0002MW-I6; Sun, 19 Dec 2021 04:32:50 -0500 In-Reply-To: <8735mp9cch.fsf@yahoo.com> (message from Po Lu on Sun, 19 Dec 2021 17:24:14 +0800) 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:282391 Archived-At: > From: Po Lu > Cc: larsi@gnus.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org > Date: Sun, 19 Dec 2021 17:24:14 +0800 > > > 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'd need to try to find some scheme that provides equivalence between the different abstractions. I don't understand how could it be too hard, since the gestures are very similar, if not identical. Which higher-level gestures did you intend to support? The MS-Windows classification has this list: . zoom . pan . rotate . two-finger tap . press and tap Which other gestures did you have in mind? > 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. I see no reason to limit ourselves to the lowest common denominator.