Closed
Bug 40382
Opened 25 years ago
Closed 25 years ago
mousedown on dropdown listbox, mouseup in dropdown --> no onclick
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
VERIFIED
FIXED
M17
People
(Reporter: jruderman, Assigned: rods)
References
()
Details
(Whiteboard: [nsbeta2+] Fix in Tree)
the dropdown window for dropdown listboxes is eating click events.
(url is an attachment on bug 40003)
Reporter | ||
Comment 1•25 years ago
|
||
the same dropdown window also failing to bubble onmouseup to its container in
http://bugzilla.mozilla.org/showattachment.cgi?attach_id=8919 (attachment to
bug 39985). is that a separate bug?
Assignee | ||
Comment 2•25 years ago
|
||
The porblem is: when you click on on the select and up on an option the left
down content won't match the left up content and the click count is being set to
zero and then onclick event is never set.
Here is the where the badness is happening nsEventStateManager.cpp line #1636,
the if statment below fails and zero the click count, this is bad.
case NS_MOUSE_LEFT_BUTTON_UP:
if (mLastLeftMouseDownContent == mouseContent.get()) {
aEvent->clickCount = mLClickCount;
mLClickCount = 0;
}
else {
aEvent->clickCount = 0;
}
NS_IF_RELEASE(mLastLeftMouseDownContent);
break;
Assignee | ||
Comment 3•25 years ago
|
||
I forgot to mention that on line 3600 of widget/src/windows/nsWindow.cpp I had
to add the following line so mouse up events have a click count of "1"
event.clickCount = 1;
Assignee | ||
Comment 4•25 years ago
|
||
I am also wondering if instead of comparing the click down content directly with
the click up content, there was someway to tell if it was ok that you clicked
down on the parent and up on the child. Although I think the select/option
relationship is the only parent/child relationship where this is ok.
Assignee | ||
Comment 8•25 years ago
|
||
Talked with joki we are going to set the clickCount appropriately, its a little
hacky bu really the only solution at this time.
Status: NEW → ASSIGNED
Keywords: regression
Summary: mousedown on dropdown listbox, mouseup in dropdown --> no onclick → [FIX]mousedown on dropdown listbox, mouseup in dropdown --> no onclick
Whiteboard: [nsbeta2+] → [nsbeta2+]Fix in Tree
Assignee | ||
Comment 9•25 years ago
|
||
fixed
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 11•25 years ago
|
||
Reopening, my fix stops onclick event being generated when you click down on the
combobox. I have a better fix now (low risk)
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Whiteboard: [nsbeta2+]Fix in Tree → Fix in Tree
Assignee | ||
Updated•25 years ago
|
Status: REOPENED → ASSIGNED
Target Milestone: M16 → M17
Comment 12•25 years ago
|
||
Putting on [nsbeta2+] radar for beta2 fix.
Whiteboard: Fix in Tree → [nsbeta2+] Fix in Tree
Assignee | ||
Comment 13•25 years ago
|
||
fixed
Status: ASSIGNED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → FIXED
Summary: [FIX]mousedown on dropdown listbox, mouseup in dropdown --> no onclick → mousedown on dropdown listbox, mouseup in dropdown --> no onclick
You need to log in
before you can comment on or make changes to this bug.
Description
•