From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Yuri D'Elia Newsgroups: gmane.emacs.devel Subject: Ergonomics: mouse clicking with scroll-margin Date: Sun, 14 Jun 2020 19:09:20 +0200 Message-ID: <87tuzdefr3.fsf@wavexx.thregr.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="112044"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: emacs-devel@gnu.org Cancel-Lock: sha1:081SpZvXfcUhx2SOSd/rjQkXdBw= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 14 19:10:02 2020 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 1jkW8w-000T3C-0H for ged-emacs-devel@m.gmane-mx.org; Sun, 14 Jun 2020 19:10:02 +0200 Original-Received: from localhost ([::1]:36630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jkW8v-0007nP-1F for ged-emacs-devel@m.gmane-mx.org; Sun, 14 Jun 2020 13:10:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37558) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkW8Q-0007Mz-Vs for emacs-devel@gnu.org; Sun, 14 Jun 2020 13:09:31 -0400 Original-Received: from ciao.gmane.io ([159.69.161.202]:48784) by eggs.gnu.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkW8P-0004B2-0Q for emacs-devel@gnu.org; Sun, 14 Jun 2020 13:09:30 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jkW8M-000SPW-CR for emacs-devel@gnu.org; Sun, 14 Jun 2020 19:09:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=159.69.161.202; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/14 13:09:26 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:252237 Archived-At: The combined behavior of the mouse and "scroll-margin" is a bit odd currently and I wonder if there's something that can be done to improve it. 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. Can this be improved _without_ disabling 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. Is there a better approach?