W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2002

click event (location and pinter move)

From: iztok jeras <iztok.jeras@rattus.info>
Date: Fri, 01 Mar 2002 13:59:44 +0100 (CET)
To: www-dom@w3.org
Message-ID: <1014987584.3c7f7b40e1729@webmail.domenca.com>
In the DOM 3 Events an click is defined as:
\"The click event occurs when the pointing device button is clicked over an 
element. A click is defined as a mousedown and mouseup over the same screen 

In Windows and IE GUI a click is interpreted as an mousedown and mouseup over 
the same element (icon or button in HTML) there is no need for this two to 
happen on the exact screen point and the pointer could be moved eaven out of 
the element while the mouse button is pressed.

I think that DOM events should support the same behaveour for the click as 
existing user agents. The specification should be more clear about it, adding a 
new event or better addin an attribute that defines if there was a move over 
the element or out of the element between the mousedown and mouseup. For 
dragable objects there is a minimum move for the click to become a drag.

Some SVG software triggers a click only if the mouse is clicked on a single 
point this is not against the dom specification, but is against what users are 
used to define a click.

iztok jeras
Received on Friday, 1 March 2002 08:00:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:09 UTC