From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrey Listopadov Newsgroups: gmane.emacs.bugs Subject: bug#52685: 29.0.50; Horizontal scrolling doesn't work when compiled with pgtk Date: Tue, 21 Dec 2021 16:54:13 +0300 Message-ID: References: <878rwezqzk.fsf@yahoo.com> <20211221.222847.806642445048126400.masm@luna.pink.masm11.me> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e04d4905d3a8572c" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2506"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 52685@debbugs.gnu.org To: Yuuki Harano Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 21 14:56:14 2021 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 1mzfck-0000Su-J7 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Dec 2021 14:56:14 +0100 Original-Received: from localhost ([::1]:44218 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mzfci-00065A-Vc for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Dec 2021 08:56:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzfbb-0005z8-08 for bug-gnu-emacs@gnu.org; Tue, 21 Dec 2021 08:55:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41225) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mzfba-0004XD-Kk for bug-gnu-emacs@gnu.org; Tue, 21 Dec 2021 08:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mzfba-0004oJ-FX for bug-gnu-emacs@gnu.org; Tue, 21 Dec 2021 08:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrey Listopadov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Dec 2021 13:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52685 X-GNU-PR-Package: emacs Original-Received: via spool by 52685-submit@debbugs.gnu.org id=B52685.164009487418437 (code B ref 52685); Tue, 21 Dec 2021 13:55:02 +0000 Original-Received: (at 52685) by debbugs.gnu.org; 21 Dec 2021 13:54:34 +0000 Original-Received: from localhost ([127.0.0.1]:52771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzfb7-0004nI-RA for submit@debbugs.gnu.org; Tue, 21 Dec 2021 08:54:34 -0500 Original-Received: from mail-ed1-f43.google.com ([209.85.208.43]:43895) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzfb5-0004n6-Px for 52685@debbugs.gnu.org; Tue, 21 Dec 2021 08:54:32 -0500 Original-Received: by mail-ed1-f43.google.com with SMTP id o20so52263356eds.10 for <52685@debbugs.gnu.org>; Tue, 21 Dec 2021 05:54:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dstcXZG7CZKYCwZ3Z+s6L3YJ7y8fPzYxcFY1GczGVEs=; b=XX/zrXz/azDCJ51wZmyp38hE2RPMIKXFHrjdMEgcxzVeStn7fk9ACBf4DRALCFTtqi twn3KKTgZhGm39XAe35XLzCMXapiUXsdHA38SAi/RZztx7ojUqj2niz09Dk10mGoxE2N xLDzCLS49YipvmBmKaVzEFdZDjfUesB75OxEbOA8t/lLbDdrgtJaUpk1wrX4csF94U+P E7i+Gv+RmTqgQTudwM2KNt8DdY3zSm+TmzpwvYbNKaP+/SguCb+EaDwqxrN0Hh4Ai3xp 6O/XIODRdFNSpH/WuaOeNIQlDI0LrxLyPBVkaNyjHx01+8tP+JYU0C2FJ/IfSCy12MkO CkEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dstcXZG7CZKYCwZ3Z+s6L3YJ7y8fPzYxcFY1GczGVEs=; b=Ybp5XaZbtW18gp23eLyQw3E8q5Eb0UUo4bSv51Hv5U1dRBJm0wHZrqO+0Qua6iDf0z g5yM7TqrCz+iw4ccl4WtvfgFEDD2ci5DVuLMVGBBuQWZZSSNNF487HcTA3aBXqAY0dtJ IqcJ7v3pKCgwzVe0aT+EiMIdZ73IDk4K4U7JmlJMnr3DCmrGwjaYBc4vzFX1dC5dhBdD h+iLnw2Qi+bAtjNpvFgQ/di+RX6vkcyy2owy+jfIaQdXVNS9AUV3u8mALDo6x2ak5J5y J80Mi3Zb2e4B6IGDVg5zHb/jtL5fL8MrYpUKx2GU4AecFfdq32XI+LI92HftegLbW0Mi YPHw== X-Gm-Message-State: AOAM5303c//McuVC2KpMGhlzOr/KZoq2cId1449Yjvicad4sDBR5qlo1 XlNqXMsLILwnZiiViQSf6vsqTTWLbLODZkBYF64= X-Google-Smtp-Source: ABdhPJyDAESqetUdQc3XDsPx9UpYxW56JN2OCmGxkYm/kHtfrKMj4KZV2PM26oOD6G8yi8wOScwWGZg9BnvnngySsD4= X-Received: by 2002:a50:dac5:: with SMTP id s5mr3426920edj.180.1640094865836; Tue, 21 Dec 2021 05:54:25 -0800 (PST) In-Reply-To: <20211221.222847.806642445048126400.masm@luna.pink.masm11.me> 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" Xref: news.gmane.io gmane.emacs.bugs:222877 Archived-At: --000000000000e04d4905d3a8572c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =D0=B2=D1=82, 21 =D0=B4=D0=B5=D0=BA. 2021 =D0=B3., 16:28 Yuuki Harano : > > > The main issue now is that horizontal > > scrolling with a touchpad no longer works for me. All horizontal events > > are registered as mwheel-down events. > > Are all of left and right scroll events registered as mwheel-down? > > Does the issue reproduce even if `emacs -Q`? > > -- > Yuuki Harano I've figured out that this was caused by me enabling `pixel-scroll-precision-mode'. If the mode is enabled, all horizontal events are treated as wheel-down in PGTK build. Additionally to that, it seems that all events that are not exactly wheel-up are treated as down events, e.g. C- is also seen as C- (in `emacs -Q' with `pixel-scroll-precision-mode' enabled) When `pixel-scroll-precision-mode' is disabled everything works fine. When compiled without `--with-pgtk' but with `--with-xinput2' `pixel-scroll-precision-mode' works as expected. -- Andrey Listopadov --000000000000e04d4905d3a8572c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
=D0=B2=D1=82, 21 =D0=B4=D0=B5=D0=BA. 2021 =D0=B3., 16:= 28 Yuuki Harano <masm+emacs@ma= sm11.me>:

> The main issue now is that horizontal
> scrolling with a touchpad no longer works for me. All horizontal event= s
> are registered as mwheel-down events.

Are all of left and right scroll events registered as mwheel-down?

Does the issue reproduce even if `emacs -Q`?

--
Yuuki Harano=C2=A0


I've figured out that this was ca= used by me enabling `pixel-scroll-precision-mode'. If the mode is enabl= ed, all horizontal events are treated as wheel-down in PGTK build. Addition= ally to that, it seems that all events that are not exactly wheel-up are tr= eated as down events, e.g. C-<wheel-up> is also seen as C-<wheel-d= own> (in `emacs -Q' with `pixel-scroll-precision-mode' enabled)<= br>

When `pixel-scroll-p= recision-mode' is disabled everything works fine.
When compiled without `--with-pgtk' but with `--with-xinput2' `pi= xel-scroll-precision-mode' works as expected.

--
Andrey Listopadov
<= /div> --000000000000e04d4905d3a8572c--