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: Wed, 01 Jul 2020 14:30:14 +0200 Message-ID: <87d05fs9ih.fsf@wavexx.thregr.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="4741"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.4; emacs 28.0.50 To: 42150@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 01 14:31:12 2020 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 1jqbtQ-000190-Ai for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Jul 2020 14:31:12 +0200 Original-Received: from localhost ([::1]:60186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jqbtP-00081Z-81 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Jul 2020 08:31:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36204) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqbtG-0007ze-8Y for bug-gnu-emacs@gnu.org; Wed, 01 Jul 2020 08:31:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40942) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jqbtF-0000YD-VY for bug-gnu-emacs@gnu.org; Wed, 01 Jul 2020 08:31:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jqbtF-00005t-Rd for bug-gnu-emacs@gnu.org; Wed, 01 Jul 2020 08:31:01 -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: Wed, 01 Jul 2020 12:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42150 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.1593606634317 (code B ref -1); Wed, 01 Jul 2020 12:31:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Jul 2020 12:30:34 +0000 Original-Received: from localhost ([127.0.0.1]:52488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jqbsn-000053-F0 for submit@debbugs.gnu.org; Wed, 01 Jul 2020 08:30:33 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:57910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jqbsg-0008WV-Kg for submit@debbugs.gnu.org; Wed, 01 Jul 2020 08:30:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqbsg-0007Ui-2d for bug-gnu-emacs@gnu.org; Wed, 01 Jul 2020 08:30:26 -0400 Original-Received: from erc.thregr.org ([2001:41c9:1:41f::63]:60462) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqbse-0000OX-32 for bug-gnu-emacs@gnu.org; Wed, 01 Jul 2020 08:30:25 -0400 Original-Received: from [193.106.183.2] (helo=localhost) by erc.thregr.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) id 1jqbsf-001x2w-QS (envelope-from ) for bug-gnu-emacs@gnu.org; Wed, 01 Jul 2020 14:30:26 +0200 Received-SPF: pass client-ip=2001:41c9:1:41f::63; envelope-from=wavexx@thregr.org; helo=erc.thregr.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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:182601 Archived-At: The combined behavior of the mouse and "scroll-margin" is a bit odd currently. If you have a buffer which has "scroll-margin" enabled, and you click anywhere in the scroll-margin region, the point is moved and the buffer is immediately scrolled. This in turn often results in the click becoming a "drag" instead, selecting parts of the buffer. I rarely use the mouse, but when I do (usually in customize groups, or when using eww), it trips me all the time since I use a rather large scroll-margin. If feels like that moving the point when using the mouse shouldn't trigger scroll-margin ever, since any action that causes a scroll would immediately move the current target away and result in unintended behavior. I can see the same effect when performing a selection by dragging: once you reach the scroll-margin area every single motion events selects half the visible buffer, which is also broken. In GNU Emacs 28.0.50 (build 36, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars) of 2020-06-30 built on eab18045nb Repository revision: bc8089a3fa11161428c51439fd3b26fd6583345d Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Debian GNU/Linux bullseye/sid Configured using: 'configure --with-x-toolkit=lucid --with-modules --without-gsettings --with-cairo CC=gcc 'CFLAGS=-O3 -march=native -pipe ' LDFLAGS=-fwhole-program' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ LIBOTF ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP