Open
Bug 301255
Opened 19 years ago
Updated 2 years ago
Mouse events sent to wrong frame when mousedown event occurs over non-text element
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
NEW
People
(Reporter: frank, Unassigned)
References
(Depends on 1 open bug, )
Details
(Keywords: testcase)
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 I have written a cross-frame drag-and-drop library in JavaScript that works well in both Firefox and IE. However, I have noticed some quirkiness in Firefox that I hope you can fix. I have thrown together an (admittedly hack) example that shows off a problem where the mousemove event is sent to the wrong frame, depending on where the mousedown event occurs. If there is a workaround for this please let me know. I have yet to find one. Reproducible: Always Steps to Reproduce: 1. Pull up http://dev.sane.com/open/mousemove/ 2. Hold down the left mouse button over the text "Click Here" in the left frame. 3. While holding the button down, move the mouse into the right frame. Note that the mousemove event is sent to the correct frame. 4. Release the mouse button and go back to the left frame. 5. Hold down the left mouse button in the blue box in the left frame, but -not- over the text "Click here". 6. While holding the button down, move the mouse into the right frame. Note that the mousemove event is sent to the incorrect frame. Actual Results: Mouse events are sent to the wrong frame. Expected Results: Mouse events should be sent to the frame that is under the cursor, regardless of what the mouse was over when the button was held down. Real world case: I have drag-and-drop enabled a table cell that contains a link. Cross-frame drag-and-drop works if I hold down the button over the link, but not if I hold down the button elsewhere in the table cell. For usability purposes, I do not want to restrict the user to having to hold the button down over the link.
Comment 1•19 years ago
|
||
I can see the bug with the latest nightly trunk build. Reporter, could you perhaps attach the testcase to the bug? Without sounding too pessimistic, I think this is a bug that can take a long time before it gets fixed. I think bug 294844 is related.
| Reporter | ||
Comment 2•19 years ago
|
||
| Reporter | ||
Comment 3•19 years ago
|
||
| Reporter | ||
Comment 4•19 years ago
|
||
Note: Adding "-moz-user-select: none;" to the html element fixes the problem for me.
Updated•15 years ago
|
Assignee: events → nobody
QA Contact: ian → events
| Assignee | ||
Updated•6 years ago
|
Component: Event Handling → User events and focus handling
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•