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)

x86
Windows 98
defect

Tracking

()

VERIFIED FIXED

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)
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?
Blocks: 39985
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: rods → joki
Keywords: nsbeta2, regression
Target Milestone: --- → M16
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;
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.
Putting on [nsbeta2+] radar for beta2 fix.
Whiteboard: [nsbeta2+]
taking this back
Assignee: joki → rods
*** Bug 40003 has been marked as a duplicate of this bug. ***
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
fixed
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Verified with 2000-06-01-09.
Status: RESOLVED → VERIFIED
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
Status: REOPENED → ASSIGNED
Target Milestone: M16 → M17
Putting on [nsbeta2+] radar for beta2 fix.
Whiteboard: Fix in Tree → [nsbeta2+] Fix in Tree
fixed
Status: ASSIGNED → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → FIXED
Summary: [FIX]mousedown on dropdown listbox, mouseup in dropdown --> no onclick → mousedown on dropdown listbox, mouseup in dropdown --> no onclick
Verified with 2000-07-07-10.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.