all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Ergonomics: mouse clicking with scroll-margin
@ 2020-06-14 17:09 Yuri D'Elia
  2020-06-14 17:45 ` Eli Zaretskii
  2020-06-14 18:47 ` Stefan Monnier
  0 siblings, 2 replies; 6+ messages in thread
From: Yuri D'Elia @ 2020-06-14 17:09 UTC (permalink / raw)
  To: emacs-devel

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?




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-07-01 12:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-14 17:09 Ergonomics: mouse clicking with scroll-margin Yuri D'Elia
2020-06-14 17:45 ` Eli Zaretskii
2020-06-14 17:58   ` Yuri D'Elia
2020-06-14 19:02     ` Eli Zaretskii
2020-06-14 18:47 ` Stefan Monnier
2020-07-01 12:34   ` Yuri D'Elia

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.