click event occurs in certain cases when it shouldn't

UNCONFIRMED
Unassigned

Status

()

P5
normal
UNCONFIRMED
14 years ago
9 months ago

People

(Reporter: bugzilla, Unassigned)

Tracking

({testcase})

Trunk
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

14 years ago
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.
(Reporter)

Comment 1

14 years ago
Posted 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.

Comment 3

14 years ago
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.

Comment 4

14 years ago
Opera 8 final release build 7561 renders the expected results.

Comment 5

13 years ago
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.
(Reporter)

Comment 6

11 years ago
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
You need to log in before you can comment on or make changes to this bug.