From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri D'Elia Newsgroups: gmane.emacs.bugs Subject: bug#42150: 28.0.50; Bad mouse interaction in the scroll-margin region Date: Sun, 31 Oct 2021 14:47:40 +0100 Message-ID: <87zgqppaew.fsf@wavexx.thregr.org> References: <87d05fs9ih.fsf@wavexx.thregr.org> <83366bz5ks.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="37003"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.4; emacs 29.0.50 Cc: 42150@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 31 14:55:11 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 1mhBIl-0009Rs-Dc for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Oct 2021 14:55:11 +0100 Original-Received: from localhost ([::1]:35090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhBIj-0007H5-Tr for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Oct 2021 09:55:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhBId-0007Gr-4n for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2021 09:55:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47743) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mhBIc-0002Ud-SM for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2021 09:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mhBIc-0000rM-EU for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2021 09:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yuri D'Elia Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Oct 2021 13:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42150 X-GNU-PR-Package: emacs Original-Received: via spool by 42150-submit@debbugs.gnu.org id=B42150.16356884793266 (code B ref 42150); Sun, 31 Oct 2021 13:55:02 +0000 Original-Received: (at 42150) by debbugs.gnu.org; 31 Oct 2021 13:54:39 +0000 Original-Received: from localhost ([127.0.0.1]:59283 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhBIF-0000qc-0y for submit@debbugs.gnu.org; Sun, 31 Oct 2021 09:54:39 -0400 Original-Received: from erc.thregr.org ([46.43.2.63]:52212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhBID-0000qU-IU for 42150@debbugs.gnu.org; Sun, 31 Oct 2021 09:54:37 -0400 Original-Received: from [193.106.183.18] (helo=localhost) by erc.thregr.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) id 1mhBIF-001FQg-Ch (envelope-from ); Sun, 31 Oct 2021 14:54:39 +0100 In-reply-to: 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:218682 Archived-At: On Wed, Sep 02 2020, Stefan Kangas wrote: > I can reproduce this if I click mouse-1, hold the mouse button down and > then move the mouse cursor. Tried on: > > In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo > version 1.16.0, Xaw3d scroll bars) > of 2020-08-17 built on joffe > > In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version > 3.24.22, cairo version 1.16.0) > of 2020-09-02 built on joffe For posterity, a partial fix for this behavior has been merged through my commit patch in e62d1fa9831cc4f046b330f438f8bd49a27a2458. There is still one scenario which IMHO deserves to be fixed before we can close this: double-clicking inside the scroll-margin area turns the double-click into a double-click+scroll (or triple+scroll). This happens because the click-count is handled at the term level, and doesn't see that the "logical" click coordinate has been shifted as a result of the scroll. The scrolling in this case should also reset the current click count.