Closed
Bug 29473
Opened 25 years ago
Closed 24 years ago
[DOM] ondblclick event not being fired
Categories
(Core :: DOM: Events, defect, P3)
Tracking
()
VERIFIED
WORKSFORME
mozilla1.0
People
(Reporter: djoham, Assigned: saari)
References
()
Details
(Keywords: dom1, Whiteboard: [nsbeta3-])
Attachments
(3 files)
|
428 bytes,
text/html
|
Details | |
|
1.58 KB,
patch
|
Details | Diff | Splinter Review | |
|
91 bytes,
text/html
|
Details |
From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; N; Linux 2.2.12-20 i686; en-US)
BuildID: 2000022308
I've checked on both button and select HTML items and it doesn't look like the
doubleclick event (ondblclick()) is ever being fired. According to the DOM1
specs that I'm
reading(http://www.w3.org/TR/REC-html40/interact/forms.html#edef-SELECT) and
(http://www.w3.org/TR/REC-html40/interact/forms.html#edef-BUTTON) ondblclick
should be supported by both of these elements.
This bug may be related to bug 9140, although that one only talks about image
areas. Perhaps this is part of a larger problem?
Reproducible: Always
Steps to Reproduce: 1.open test case attachment 2 [details] [diff] [review].try to double click on the
button 3.try to double click on the select
Actual Results: No event is fired
Expected Results: I would expect the event to fire and the event handlers
defined to be called.
Updated•25 years ago
|
Assignee: vidur → joki
Comment 2•25 years ago
|
||
Joki, I believe this one is yours...
Updated•25 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 4•25 years ago
|
||
I don't know why this got back to me, reassigning to joki again.
Assignee: jst → joki
Comment 5•25 years ago
|
||
I have notice that on other elements, ondblclick works, but only with 1 click!
This was a treecell item.
Also, this bug is still there in M15, as the testcase still does not work. It
works in IE, however.
Comment 10•25 years ago
|
||
Adding [DOM] prefix to bugs related to DOM Level 0, 1, or 2
compatibility/compliance.
Updated•25 years ago
|
Summary: ondblclick event not being fired → [DOM] ondblclick event not being fired
Updated•25 years ago
|
Keywords: correctness
Comment 11•25 years ago
|
||
I believe this is an important one to have fixed by RTM. It's a significant DOM
compatibility issue which, if let unfixed, will make it hard for web
applications to implement common user interactions.
Agreed. But what exactly is a double click? Click is defined as:
mousedown
mouseup
click
Is double click then
a) mousedown
mouseup
click
mousedown
mouseup
click
doubleclick
b) mousedown
mouseup
click
mousedown
mouseup
doubleclick
c) mousedown
mouseup
mousedown
mouseup
doubleclick
?
OS: Linux → All
Hardware: PC → All
I discussed this with vidur and joki, and we came to the conclusion that the
best way would probably be to fire a new event after the second click event. The
patch does that.
However, DOM 2 spec does not define double click events, and IE handles
doubleclicks differently. If you want follow the standards you should check the
click event and see how many clicks there were.
The bottom line still is that we should probably support this, and the easiest
way seems to be the attached patch. Haven't done heavy testing with it yet, but
at least the test case works.
Assignee: joki → heikki
Status: ASSIGNED → NEW
Whiteboard: [Fix attached]
Updated•25 years ago
|
Status: NEW → ASSIGNED
Has been reviewed by saari@netscape.com.
Keywords: review
Checked in the fix. Marking fixed.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 19•25 years ago
|
||
Mac OS Build 2000-09-04-08 still seems half broken (also checked on 2000-08-28-
08). Sometimes it works, most it doesn't, so I'm reopening the bug and changing
the Platform to Mac and OS to 9.0.4.
Status: RESOLVED → REOPENED
OS: All → Mac System 9.0
Hardware: All → Macintosh
Resolution: FIXED → ---
Comment 20•25 years ago
|
||
Also, another minor addition. The following test:
http://slip/projects/marvin/html/button_ondblclick.html
is apparently working on Mac OS 9.0.4 running build 2000-09-04-08, but the funny
thing is that when you click twice, the message telling you pops up, but if you
move the mouse pointer over the text box it depresses the button. Just by moving
it over it, like ONMOUSEOVER or something. Very funky.
Updated•25 years ago
|
Whiteboard: [nsbeta3+][Fix attached] → [nsbeta3+]
I see the funky effects on NT and Linux too,
http://slip/projects/marvin/html/button_ondblclick.html
However, the doubleclick event gets fired and the event handlers fire ok on NT
and Linux.
Comment 22•25 years ago
|
||
*** Bug 49954 has been marked as a duplicate of this bug. ***
Comment 23•25 years ago
|
||
Yup, the event gets fired on Mac and Win98, but I think the app is forgetting to
release the last mouseclick....
Reassigning to Chris, thanks for help. Nisheeth said the minor problem reported
by lorca@netscape.com 2000-09-06 13:45 does not matter at this time - as soon as
you can get the dbclick working on Mac just future this (or create a new bug for
that problem, which is perhaps better).
Assignee: heikki → saari
Status: REOPENED → NEW
Comment 25•25 years ago
|
||
nsbeta3-/future, cc jrgm
Whiteboard: [nsbeta3+] → [nsbeta3-]
Target Milestone: --- → Future
| Assignee | ||
Comment 26•25 years ago
|
||
Targeting Mozilla 0.9
Status: NEW → ASSIGNED
OS: All
Target Milestone: Future → mozilla0.9
| Assignee | ||
Updated•24 years ago
|
Target Milestone: mozilla0.9 → mozilla1.0
Updated•24 years ago
|
Component: DOM Level 1 → DOM Events
Comment 27•24 years ago
|
||
Should the summary of this bug now be "double click doesn't release first
click"? Would that remaining symptom matter much or be seen often?
Keywords: nsbeta3
Comment 28•24 years ago
|
||
On mac 9.0, 20010226 build, the double click is reliably (always) firing
for either the select or button control in the testcase 2/27. I'm not sure
what "app is forgetting to release the last mouseclick" even means.
Comment 29•24 years ago
|
||
Now, the event is being fired, but clicking on the OK button on the Alert dialog
has no effect. The test case is provided in the url field.
| Assignee | ||
Comment 32•24 years ago
|
||
tested on mac and win2k and doubleclick appears to work fine. marking worksforme
Status: ASSIGNED → RESOLVED
Closed: 25 years ago → 24 years ago
Resolution: --- → WORKSFORME
Comment 34•23 years ago
|
||
verifying wfm on windows 98 2002-02-20-03-trunk and linux red hat
2002-02-13-08-trunk
Status: RESOLVED → VERIFIED
Comment 35•19 years ago
|
||
If this is working can someone update
http://www.mozilla.org/docs/dom/mozilla/bug-events.html
Comment 36•19 years ago
|
||
http://www.mozilla.org/docs/dom/mozilla/bug-events.html
has been updated accordingly.
You need to log in
before you can comment on or make changes to this bug.
Description
•