Open Bug 279314 Opened 20 years ago Updated 2 years ago

click event occurs in certain cases when it shouldn't

Categories

(Core :: DOM: Events, defect, P5)

defect

Tracking

()

UNCONFIRMED

People

(Reporter: bobe+bugzilla, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a6) Gecko/20050111
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a6) Gecko/20050111

DOM3 Events have a paragraph about this cases:
"Note that, given the definition of a click, If one or more of the event types
{"http://www.w3.org/2001/xml-events", "mouseover"},
{"http://www.w3.org/2001/xml-events", "mousemove"}, and
{"http://www.w3.org/2001/xml-events", "mouseout"} occur between the press and
release of the pointing device button, the event type
{"http://www.w3.org/2001/xml-events", "click"} cannot occur."

Reproducible: Always

Actual Results:  
Click event dispatched even if mouseover, mouseout and/or mousemove occurs
between press and release of the button.

Expected Results:  
Click event should not be dispatched if mouseover, mouseout and/or mousemove
occurs between press and release of the button.
Attached file testcase
Summary: click event occurs in certain cases when it shoudn't → click event occurs in certain cases when it shouldn't
I think click should occur if the movement is small enough that a click would
occur based on the user / operating system's settings.  (Many systems have an
amount of movement that is allowed between down and up for a click to still be
generated.)  I think the DOM spec should be revised to reflect this.
I think the spec wants the click event to be distinguished and to be
distinguishible from [text] select event and the provided testcase useful.
select event in DOM 3 is no longer restricted to INPUT and TEXTAREA elements only.
Opera 8 final release build 7561 renders the expected results.
Probably same bug as https://bugzilla.mozilla.org/show_bug.cgi?id=319347
In the current firefox svg implementation, a "click" event is issued on every single "mouseup" event. Mouse movement between mousedown and mouseup is not evaluated at all. (See 319347 for additional testcases).

This causes big problems when a SVG file for example implements both dragging and clicking features, because a click will be issued every time something is dragged.

Opera and the Adobe plugin implements working click events. Firefox does not.
Please confirm this bug or mark it "INVALID"
Assignee: events → nobody
QA Contact: ian → events
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: