Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

How to stop an unwanted mouse click action System
I just discovered this by accident. I accidentally clicked on the red close button at the top of my Safari window. Realizing this in mid-click, I kept the mouse button held down, and moved the pointer off the close button. Upon releasing the mouse, the window did not close. This also works for the minimize and zoom buttons, and as far as I can tell it also works for any OS X window.

Granted, you have to have quick reflexes to realize your mistake in mid-mouseclick, but I thought I'd share nonetheless.

[robg adds: I was going to reply to the submitter that this was standard OS X behavior and not really hintable, but then I though about the number of users who are new to the platform who may not know about this. In the Mac OS, mouse events are sent on mouse up, not mouse down -- in other words, everything happens when you release the mouse button, not when you press it down. Like any good rule, of course, there are some annoying exceptions to this: iTunes' lists comes to mind, where the entries are selected as soon as you press the button down. I'm sure there are others, but for the most part, it's releasing the button that causes the action to occur, not pressing it. On Windows, the mouse-down action seems to initiate the action, leaving you no chance to cancel.]
    •    
  • Currently 1.50 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[11,406 views]  

How to stop an unwanted mouse click action | 16 comments | Create New Account
Click here to return to the 'How to stop an unwanted mouse click action' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How to stop an unwanted mouse click action
Authored by: ScottTFrazer on Aug 14, '06 07:39:13AM

Actually, this behavior is exactly the same under Windows. To click a button it must receive both the mouse down and mouse up event.



[ Reply to This | # ]
How to stop an unwanted mouse click action
Authored by: pub3abn on Aug 14, '06 08:26:42AM

I was about to say precisely the same thing. It has been standard behavior for both Mac and Windows for some time now, and probably Linux as well. It has bailed me out of accidents many times, especially when a button suddenly appears in a dialog box or is exposed by a vanishing window, and you click it by mistake because you were actually intending to click on something else. Freeze ... hold ... slide ... release -- it's kind of like stepping on a trap trigger by mistake, and gingerly getting off before you trigger it.



[ Reply to This | # ]
How to stop an unwanted mouse click action
Authored by: gidds on Aug 14, '06 01:44:12PM

Mmm.

However, where Mac OS X and Windows differ is in handling the right mouse button. On the Mac, the pop-up menu appears as soon as you press the right button; so you can press, move, and release to select an item. Whereas on Windows, it only appears on release, so you always need two press/release cycles to do anything.

Another of those petty annoyances brought to you by Microsoft.

---
Andy/



[ Reply to This | # ]
How to stop an unwanted mouse click action
Authored by: ulric on Aug 18, '06 11:36:52PM

It depends on the apps, some do show the right mouse button context menu on mouse down.

The default behaviour of showing the RMB context menu on mouse up is to allow drag-and-drop with the right mouse button. On the drop action the context menu allows chosing which action to take (for example Copy or Move).



[ Reply to This | # ]
How to stop an unwanted mouse click action
Authored by: vocaro on Aug 14, '06 09:33:36AM

And KDE, and Gnome, and just about every other GUI framework designed in the last 10 or 20 years.



[ Reply to This | # ]
How to stop an unwanted mouse click action
Authored by: michaelj on Aug 14, '06 07:57:48AM

this was also standard behavior in Mac OS 7 and up. Probably even in Mac OS 6, but I don't recall that far back...



[ Reply to This | # ]
How to stop an unwanted mouse click action
Authored by: morespace54 on Aug 14, '06 11:24:29AM

Who would? ;-)



[ Reply to This | # ]
How to stop an unwanted mouse click action
Authored by: -dl- on Aug 14, '06 10:29:22AM

mouseDown events and mousUp events are as old as the Mac and probably older. From the beginning the Mac used both to distinguish clicking from dragging and to detect double clicking.



[ Reply to This | # ]
How to stop an unwanted mouse click action
Authored by: enigmamf on Aug 14, '06 11:07:04AM
Like any good rule, of course, there are some annoying exceptions to this: iTunes' lists comes to mind, where the entries are selected as soon as you press the button down.

This is actually a behavior consistent with Finder: Any item that can be dragged (such as a song or playlist in itunes, an icon in finder) receives focus when clicked. It would generate gadzillions of complaints if you had to click then click again to drag in Finder, and it would be inconsistent if you had to treat songs in iTunes differently from songs in Finder.



[ Reply to This | # ]
You can also stop a drag-n-drop in mid-drag
Authored by: dzurn on Aug 14, '06 12:51:18PM

As has been mentioned here before, you can also escape from a dragging operation by hitting, well, Escape. Then the 'dragee' snaps back to where it was before.

Nice if you drag docs onto apps that refuse to open them, and once you see it you can hit Escape and everything's back to normal.

---
Madness takes its toll.
Please have exact change.



[ Reply to This | # ]
Now if we only could...
Authored by: bogdescu on Aug 14, '06 01:24:56PM

...find a way to stop cancel such "hints" in mid-posting :-)



[ Reply to This | # ]
How to stop an unwanted mouse click action
Authored by: ScottTFrazer on Aug 14, '06 04:28:06PM

I'd call that more of a "fringe UI choice" than petty annoyance.

By delaying the menu until you finish the right click, you can actually right click and drag to select multiple icons and then XP pops up a window allowing you to do stuff to them.



[ Reply to This | # ]
How to stop an unwanted mouse click action
Authored by: DVD Plaza on Aug 15, '06 01:46:45AM
robg adds: ...On Windows, the mouse-down action seems to initiate the action, leaving you no chance to cancel. Absolute rubbish, this has been standard behaviour since at least Windows 3.0 - move your mouse away from any button whilst still holding it down and it will pop back up again, release whilst away from it and the action is not initiated. mousedown is NOT used to initiate the event, nor is mouseup - mouseclick is the event used to trigger the button's action and that will only fire if you release the mouse button whilst within the space of that object.

[ Reply to This | # ]
How to stop an unwanted mouse click action
Authored by: DylanMuir on Aug 15, '06 05:20:05AM

Not a good day for macosxhints -- two VERY poor hints with tons of misinformation. I think the editors need to pay a little closer attention and be a little more selective...

DRM



[ Reply to This | # ]
How to stop an unwanted mouse click action
Authored by: osxpounder on Aug 15, '06 12:22:17PM

It's a good hint for exactly the reasons robg points out. Moreover, quite a few veteran Mac users will never have noticed this, so it's worth pointing out.

Too much whining and posing going on here. Gosh, you can remember as far back as OS 7 or Windows 3.0, too? So what? These tips are worth every penny you paid for them.



[ Reply to This | # ]
How to stop an unwanted mouse click action
Authored by: 1stMachine on Aug 31, '06 05:23:31AM

I im often watch people who work with their computer in a "double-click-everything" mood. these kind of people dont realise what they are doing with "mouse down" or "mouse up" or if a single click or doubple click is needed.

they just double click and "it" happens.

so i think maby some of these people might need such a tip!
good work. hopfully every "double-click-everything-guy" reads it.



[ Reply to This | # ]