W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2001

Re: Button values for Events need Modified

From: Philippe Le Hegaret <plh@w3.org>
Date: Tue, 10 Apr 2001 17:47:57 -0400
Message-ID: <3AD37F8D.42A70298@w3.org>
To: Jeff Yates <PBWiz@PBWizard.com>
Cc: WWW DOM <www-dom@w3.org>
> Jeff Yates wrote:
> 
> I have run into a problem with the MouseEvent recommendation.  During a
> mouseover event I need to know what/if a mouse button is pressed.  If so do one
> action, if not do another.   The problem is that the MouseEvent does not tell
> you IF A BUTTON IS BEING PRESSED, or if multiple buttons are being pressed.

I guess in that case, you will receive one Mouse event for each mouse button
pressed. For example:

mousedown button 0
mousedown button 1

[all kind of mousemove, mouseover, mouseout, ...]

mouseup button 0
mouseup button 1

click button 0
click button 1

order of mousedown, mouseup or click is not relevant here.

This can also be applied on the key events.

> What if the button was pressed outside of the browser window?

I don't think you will receive the click event in that case if the mouse is
released in the browser window. You will certainly get the two mouseup events.
Note that mouseover and mouseout don't contain buttons informations.

Philippe
Received on Tuesday, 10 April 2001 17:47:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:48 GMT