From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: ignore mouse-wheel press during rotation Date: Thu, 2 Feb 2006 09:09:54 -0800 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1138908515 19828 80.91.229.2 (2 Feb 2006 19:28:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Feb 2006 19:28:35 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 02 20:28:34 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F4k7x-0001Pc-Ns for ged-emacs-devel@m.gmane.org; Thu, 02 Feb 2006 20:28:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F4kB4-0006KB-Hx for ged-emacs-devel@m.gmane.org; Thu, 02 Feb 2006 14:31:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F4iEq-0006gW-54 for emacs-devel@gnu.org; Thu, 02 Feb 2006 12:27:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F4i5m-00037F-LP for emacs-devel@gnu.org; Thu, 02 Feb 2006 12:18:00 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F4i1A-00017L-Dp for emacs-devel@gnu.org; Thu, 02 Feb 2006 12:13:12 -0500 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1F4i01-0004Rq-RY for emacs-devel@gnu.org; Thu, 02 Feb 2006 12:12:02 -0500 Original-Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k12H9t4L003376 for ; Thu, 2 Feb 2006 11:09:56 -0600 Original-Received: from rgmsgw300.us.oracle.com (localhost [127.0.0.1]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k12H9t9D032325 for ; Thu, 2 Feb 2006 10:09:55 -0700 Original-Received: from dradamslap (dradams-lap.us.oracle.com [130.35.177.126]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k12H9pbK032313 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Thu, 2 Feb 2006 10:09:55 -0700 Original-To: "Emacs-Devel" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:49934 Archived-At: This might be considered a bug fix request, but it is probably better seen as feature request. It concerns mice that have a wheel that can be rotated or pressed (e.g. clicked). In the latter case, the wheel is (usually? always?) treated as mouse-2. The problem (annoyance) is that with many (all?) such mice it is easy to accidentally press the wheel while trying to rotate it (the rotation finger movement ends similarly to a press movement). In Emacs, this results in a rotation (wheel) event followed by a mouse-2 event, which is rarely what you want. This can be disorienting for a gnubie (e.g. unexpected pasted text), and it is anyway annoying for oldbies. Note that this is less of a problem (nonexistent?) in other applications, which do not use mouse-2 the way Emacs does. For example, you don't notice this problem in common Web browsers because you generally use mouse-1, not mouse-2, for clicking and press-dragging. Emacs makes heavy use of mouse-2, so the problem arises more frequently. It would be great to remove this annoyance. This could probably be done by ignoring mouse-2 events during and shortly after wheel-rotation events. This might mean something like the following: 1. Ignore mouse-2 events between two mouse wheel rotation events. 2. Ignore a mouse-2 event following a mouse wheel rotation event within some (configurable) duration. Perhaps #1 is not necessary or desirable. #2 should be sufficient, I think (but I'm not sure). WDOT? Is this something that could be tackled before the release? If not, could we put it on the to-do list for after the release?