Closed
Bug 459222
Opened 16 years ago
Closed 16 years ago
No mouseup and click event fired in this case, using width: 43px and DOMWindowUtils sendMouseEvent
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: martijn.martijn, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file)
972 bytes,
text/html
|
Details |
See testcase, you need to download it to your computer because of the use of enhanced privileges. I would expect 3 alerts to fire, 1 for the mousedown event, 1 for the mouseup event and 1 for the click event. But currently, only the mousedown event alert is shown. When I widen the div with 1 px all 3 events are fired. For all smaller widths of the div, also only the mousedown event is fired. I found this bug, while testing bug 458418.
Comment 1•16 years ago
|
||
>wu.sendMouseEvent('mousedown', arect.left+3, arect.top+3, 0, 1, 0);
>wu.sendMouseEvent('mouseup', arect.top+3, arect.top+3, 0, 1, 0);
Shouldn't the second line be
wu.sendMouseEvent('mouseup', arect.left+3, arect.top+3, 0, 1, 0);
Reporter | ||
Comment 2•16 years ago
|
||
*Sigh* Yeah, it should and then it works just fine. Really, Mozilla should prevent me from making stupid mistakes.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•