dragenter event is fired twice when the dropzone is parent of draggable or draggable itself with Firebug
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, defect)
Tracking
()
People
(Reporter: danya.postfactum, Unassigned)
References
Details
Attachments
(3 files)
| Reporter | ||
Comment 2•13 years ago
|
||
| Reporter | ||
Updated•13 years ago
|
| Reporter | ||
Comment 3•13 years ago
|
||
| Reporter | ||
Comment 5•13 years ago
|
||
Comment 7•13 years ago
|
||
Comment 9•13 years ago
|
||
Comment 10•13 years ago
|
||
Comment 11•13 years ago
|
||
Comment 12•13 years ago
|
||
Comment 13•10 years ago
|
||
Comment 14•10 years ago
|
||
Comment 15•10 years ago
|
||
Comment 16•10 years ago
|
||
Comment 17•10 years ago
|
||
Comment 18•10 years ago
|
||
Updated•10 years ago
|
Updated•10 years ago
|
Comment 19•10 years ago
|
||
Comment 20•10 years ago
|
||
Comment 21•10 years ago
|
||
Updated•10 years ago
|
Updated•3 years ago
|
Comment 22•2 years ago
|
||
Clear a needinfo that is pending on an inactive user.
Inactive users most likely will not respond; if the missing information is essential and cannot be collected another way, the bug maybe should be closed as INCOMPLETE.
For more information, please visit BugBot documentation.
Comment 23•1 year ago
|
||
Hi all,
I'm implementing drag-and-drop functionality for my webpage and I've encountered the same issue.
First some formalities:
- Firefox 138.0 (but it was the same in previous versions also)
- using the original example from this attachment: https://bug804036.bmoattachments.org/attachment.cgi?id=674965
- in previous comments people mentioned something called e10s, which supposedly, when added to Firefox, causes that this bug is no more; don't know what this e10s is and I doubt I have it installed (but I might be wrong).
I've spent a considerable amount of time trying to debug this, mostly because I needed to find a workaround (in my use case of drag-and-drop this bug has a real impact on functionality).
My findings are listed below (all are true for both my web page and for the example code from the aforementioned attachment):
-
when you first load the page, everything works fine - the event is fired only once when you start the drag operation
-
you need to first perform a valid drop before you can observe the bug during the next drag operation:
- canceling the drag operation (for example, pressing ESC key) will prevent the bug from occurring
- dropping the dragged element outside of any draggable element will also prevent the bug from occurring
- dropping the element on itself will also prevent the bug from occurring
In the attached example, it is enough to drop the first rectangle on any of the other two rectangles. Then you just start another drag operation of the first rectangle and you can observe the bug.
-
Keep in mind that when the bug occurs, you will see only one dragenter message in the JavaScript console, but with the blue label saying "2" on the right hand side (meaning that there were 2 messages, only just the duplicate was suppressed by the console).
-
The first of the two events, and this is quite important I think when you want to investigate the source of the bug, will have all of the pointer coordinates (clientX/Y, layerX/Y, pageX/Y, screenX/Y, x/y) from the last drop event.
-
Even when you reload the page after the first drag and drop (by clicking the reload button next to the address bar, or by pressing F5), the bug still occurs (even the event's pointer coords are the same as in the drop event from before the page reload!).
Hint 1: extend the example code by adding the event's pointer coords to the debug message, and the console will not suppress the second message (the messages will differ because of different coordinates).
Hint 2: extend the example code by logging also the drop event, along with its coords - this way you can confirm my observation described in point 4) above.
Description
•