Closed
Bug 511188
Opened 15 years ago
Closed 12 years ago
Image drag-and-drop interferes with mouse events for svg application
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, defect)
Core
DOM: Copy & Paste and Drag & Drop
Tracking
()
RESOLVED
INVALID
People
(Reporter: maran, Unassigned)
References
()
Details
(Keywords: html5, regression)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5
I have a SVG application which let me move an image within a frame by dragging it with the mouse (see URL). The problem is that the built in image drag-and-drop in Firefox interferes with the mouse event stream to the SVG application. The initial mouse down and mouse move events are sent to SVG, but when image drag-and-drop kicks in, the event stream is cut off.
Reproducible: Always
Steps to Reproduce:
1. Klick and hold over Firefox logo.
2. Drag mouse. Image starts to move.
3. Image stops moving when drag-and-drop kicks in.
4. Release mouse button. Drag mouse. Image moves, because mouse up event not sent to SVG application.
Expected Results:
Image drag-and-drop should not cut off event stream to SVG application. The image should move when dragged, and stop when mouse button is released. This worked in earlier versions of Firefox.
I wonder what makes my case different from google maps, where images are dragged as well?
Reporter | ||
Updated•15 years ago
|
Version: unspecified → 3.5 Branch
Comment 1•15 years ago
|
||
Confirmed on Windows Vista, latest trunk.
Status: UNCONFIRMED → NEW
Component: General → Drag and Drop
Ever confirmed: true
Keywords: html5,
regression
OS: Linux → All
Product: Firefox → Core
QA Contact: general → drag-drop
Hardware: x86 → All
Version: 3.5 Branch → Trunk
Comment 2•15 years ago
|
||
If you don't want existing behaviour to occur, you need to cancel the events.
Reporter | ||
Comment 3•15 years ago
|
||
Cancel which events? Is is possible to turn off Firefox built-in image drag-and-drop in a local context?
Comment 4•15 years ago
|
||
The dragstart event.
Comment 5•12 years ago
|
||
You need to call evt.preventDefault() in the drag handlers.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•