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.bugs Subject: bug#65070: 29.1; (Only on Windows) Both touchpad scroll gestures scroll the screen up and down. Date: Sun, 20 Aug 2023 09:34:22 +0300 Message-ID: <835y5axlw1.fsf@gnu.org> References: <85lee88fej.wl--xmue@d1.dion.ne.jp> <83v8dc2on4.fsf@gnu.org> <83cyzj1n7p.fsf@gnu.org> <83350fyvma.fsf@gnu.org> <87bkf2efa2.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30208"; mail-complaints-to="usenet@ciao.gmane.io" Cc: hiroya.ebine1@gmail.com, kzhr@d1.dion.ne.jp, max@mal-richtig.de, 65070@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 20 08:35:13 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qXc1p-0007ax-Ny for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Aug 2023 08:35:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXc1g-0004q2-R8; Sun, 20 Aug 2023 02:35:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qXc1c-0004n0-Gh for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 02:35:01 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qXc1c-0006NC-7Y for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 02:35:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qXc1d-00010q-KM for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 02:35:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Aug 2023 06:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65070 X-GNU-PR-Package: emacs Original-Received: via spool by 65070-submit@debbugs.gnu.org id=B65070.16925132573785 (code B ref 65070); Sun, 20 Aug 2023 06:35:01 +0000 Original-Received: (at 65070) by debbugs.gnu.org; 20 Aug 2023 06:34:17 +0000 Original-Received: from localhost ([127.0.0.1]:52837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXc0v-0000yw-69 for submit@debbugs.gnu.org; Sun, 20 Aug 2023 02:34:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXc0s-0000yc-OO for 65070@debbugs.gnu.org; Sun, 20 Aug 2023 02:34:15 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qXc0l-0006Cd-VS; Sun, 20 Aug 2023 02:34:07 -0400 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=GKf/twdd8t2h+xzrjc2EH2UL5WZsl1972K+/H1ye18A=; b=eFl5p0NyvtE5 81lO/gEFxhaLeZCiPcGNXyRR2/ooh1xhCLjOpl1ThtDL/WSsnL0Kza9k8UGVfoT5BBBMwCqfv9guO lQhdx9iXmnSIeADrzWU3equWFCO38w7JfPxkxvhUyAwRdr1iF/2lffta5Id793Sb37C9RED8To9VP p4LLYNOPbFLXGI9JuOh5/c+Hl0byVkdUyUKheNI9e8Oueb0IGqeyRvAsrQ6q2WVzhotf6I11HN+A0 q0JCZ8nW0y3ck9jX8YgewrmJoHNyesfcLPDa1EhO2zm55UZy9myQMnGEsWg8JkD2X1eIA7WiBfEdn oRuOVVdSRRr9YmrRB+Xx0Q==; In-Reply-To: <87bkf2efa2.fsf@yahoo.com> (message from Po Lu on Sun, 20 Aug 2023 08:19:49 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:267952 Archived-At: > From: Po Lu > Cc: kzhr@d1.dion.ne.jp, hiroya.ebine1@gmail.com, max@mal-richtig.de, > 65070@debbugs.gnu.org > Date: Sun, 20 Aug 2023 08:19:49 +0800 > > Eli Zaretskii writes: > > >> Cc: hiroya.ebine1@gmail.com, max@mal-richtig.de, 65070@debbugs.gnu.org > >> Date: Sat, 19 Aug 2023 10:54:34 +0300 > >> From: Eli Zaretskii > >> > >> Po Lu, I'd appreciate if you'd take me through the code that produces > >> and uses these wheel events, documented in the ELisp reference manual > >> as (wheel-up/down POSITION CLICKS LINES PIXEL-DELTA). Specifically: > >> > >> . what is the conventions for signs in the data of the PIXEL-DELTA > >> cons cell? > > The pertinent delta is the one for the axis whose value is larger. If > more scrolling has taken place on the X axis, then the relevant delta is > that for the Y axis. Otherwise, it is the delta for the Y axis. > > If that delta is less than 0, a wheel-down event is produced. > Otherwise, a wheel-up event is produced instead. > > >> . where and how are the PIXEL-DELTA data used for scrolling? > > Only in pixel-scroll-precision-mode; the traditional mouse wheel > scrolling code derives the direction in which to scroll from the type of > the wheel event. So basically, pixel-scroll-precision-mode ignores the event type and decides on the direction of scrolling based on the signs in the PIXEL-DELTA data? And we expect any other Emacs feature that wants to use PIXEL-DELTA to ignore the event type in the same manner? And another question: what if PIXEL-DELTA provides deltas that are smaller than one screen line -- what should the LINES member of the wheel-up/down event be in that case? The code both in w32term.c and xterm.c produces NO_EVENT event in those cases, AFAICT, so it sounds like we cannot support such fine scrolling amounts? Or did I miss something?