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)
Core
DOM: Events
Tracking
()
UNCONFIRMED
People
(Reporter: bobe+bugzilla, Unassigned)
References
()
Details
(Keywords: testcase)
Attachments
(1 file)
3.27 KB,
text/html
|
Details |
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•20 years ago
|
||
Updated•20 years ago
|
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•19 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.
Keywords: testcase
Comment 4•19 years ago
|
||
Opera 8 final release build 7561 renders the expected results.
Comment 5•18 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•16 years ago
|
||
Please confirm this bug or mark it "INVALID"
Updated•15 years ago
|
Assignee: events → nobody
QA Contact: ian → events
Comment 7•6 years ago
|
||
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
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•