Closed Bug 590355 Opened 14 years ago Closed 13 years ago

"drag"-event not containing mouse position

Categories

(Core :: DOM: Copy & Paste and Drag & Drop, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 505521

People

(Reporter: andre.selmanagic+mozilla, Unassigned)

References

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8

All data of the event-object of the "drag" event relating to the position of the mouse (screenX, etc.) is set to 0 while dragging, making it impossible to know where the mouse is during a drag.

Someone already reported this as Bug 581575, but put it into the category Firefox->General, where it will probably never be found by the right people. As I am not able to change the category of the Bug 581575, I report this as a new bug.

Thanks a lot.

Reproducible: Always

Steps to Reproduce:
1. listen to the drag-event
2. check screenX
Actual Results:  
screenX is 0

Expected Results:  
screenX should be changing as the mouse moves and will most likely not be 0
A minimal testcase would be great.
Component: Event Handling → Drag and Drop
QA Contact: events → drag-drop
What coordinate are you expecting here? The 'drag' event doesn't fire at specific location just at an element.
Here's the testcase. just drag the span and the coordinates will be shown for the dragstart and for the drag (being 0).
I'm expecting the current mouse-position, so that I can know at which screen coordinates the drag currently is. as the drag-event is the only event being periodically fired during a drag, i thought it would be the right place to retrieve the mouse-position, even if the mouse is not above the element being dragged.

Cheers.
Any change on fixing this soon? It is a blocker for me.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: