From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org, drew.adams@oracle.com, jasonr@gnu.org
Subject: Re: ignore mouse-wheel press during rotation
Date: Sat, 04 Feb 2006 11:52:56 -0500 [thread overview]
Message-ID: <87mzh7kres.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <uslqzmfww.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 04 Feb 2006 15:06:55 +0200")
>> > I don't think this is something that can be easily solved by ignoring
>> > certain events, since it is impossible to know the user's real
>> > intention and we are as likely to frustrate the user as help them.
>>
>> We should probably just ignore mouse-[45] events while mouse-2 is pressed
>> (i.e. after down-mouse-2 but before the corresponding mouse-2).
> You mean, to add the complementary code that ignores mouse-[45] after
> mouse-2, like mouse-2 is now ignored after mouse-[45]?
Yes and no: the idea is similar, but I think a different implementation
should be used.
The current code ignores mouse-2 events if they occur shortly after
a mouse-wheel operation.
What I propose does not depend on time: mouse-wheel events should be ignored
for as long as mouse-2 is pressed. In case you have a drag-like operation
bound to mouse-2 this can make a big difference.
After all, if the accidental mouse-wheel happens before down-mouse-2,
there's no way for us to ignore it (we can't know yet that a down-mouse-2
is coming and the current mwheel-inhibit-click code will actually decide to
ignore the down-mouse-2 event instead).
In my experience involontary wheel events don't happen when I release
the mouse-2 button, but if they do, then yes, maybe mouse-wheel events
should also be ignored for a little while after the mouse-2 release, just
like the current code does for mouse-2-after-mouse-wheel.
Stefan
next prev parent reply other threads:[~2006-02-04 16:52 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-02 17:09 ignore mouse-wheel press during rotation Drew Adams
2006-02-02 21:21 ` Kim F. Storm
2006-02-02 22:55 ` Drew Adams
2006-02-02 23:50 ` Kim F. Storm
2006-02-03 0:03 ` Drew Adams
2006-02-04 12:51 ` Eli Zaretskii
2006-02-03 10:21 ` Jason Rumney
2006-02-03 15:57 ` Drew Adams
2006-02-04 9:26 ` Eli Zaretskii
2006-02-04 13:03 ` Eli Zaretskii
2006-02-04 12:56 ` Eli Zaretskii
2006-02-04 18:20 ` Drew Adams
2006-02-05 4:25 ` Eli Zaretskii
2006-02-05 20:51 ` Kim F. Storm
2006-02-02 22:15 ` John Paul Wallington
2006-02-03 10:20 ` Jason Rumney
2006-02-03 16:06 ` Drew Adams
2006-02-03 19:21 ` Eli Zaretskii
2006-02-03 23:04 ` Stefan Monnier
2006-02-04 13:06 ` Eli Zaretskii
2006-02-04 16:52 ` Stefan Monnier [this message]
2006-02-03 16:13 ` Piet van Oostrum
2006-02-03 22:16 ` Luc Teirlinck
2006-02-06 15:27 ` Piet van Oostrum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mzh7kres.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=jasonr@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.