Open
Bug 614386
Opened 14 years ago
Updated 4 years ago
dataTransfer.setDragImage and zooming produce unexpected results
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, defect, P5)
Tracking
()
NEW
People
(Reporter: Yos.T.zz, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file)
1.75 KB,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12
The offset used with setDragImage isn't scaled like the rest of the page when zooming.
Reproducible: Always
Steps to Reproduce:
1. Use the setDragImage method to center the drag feedback image on the center of the mouse pointer.
2. Zoom the page. (more zoom produces a greater effect)
3. Drag the image.
Actual Results:
The drag feedback image is not centered on the mouse pointer.
Expected Results:
The drag feedback image should be centered on the mouse pointer.
The image itself is scaled with the page, just the position is off.
Also reproduces on Linux.
Added a html page to demonstrate the problem.
Open the page and drad the green square around. The square will be centered on the mouse pointer when dragging.
Now zoom the page and repeat.
![]() |
||
Comment 2•14 years ago
|
||
This works for me as expected on WinXP using Build built from
http://hg.mozilla.org/mozilla-central/rev/4b9ba5049e66
Can you confirm this by testing a Firefox 4 Beta or Nightly Build (http://nightly.mozilla.org)?
Be sure to create a new Profile beforehand.
I get the same result with Firexox 4.0 Beta 7.
The example in the attachment doesn't work, because drag feedback images are not shown for position:absolute element, that is a know problem. But changing the style to position:relative I see the same result as before.
To be clear, the problem is only when dragging. Zoom all the way out, drag the image and the image will appear to the top-left of the cursor instead of directly beneath it.
When dropped the image appears under the cursor.
I cannot make a screenshot, because either the cursor or the drag feedback image isn't displayed.
Same result with nightly build of 24-Nov-2010 on Linux 64-bit Intel.
Minefield 4.0b8pre
![]() |
||
Comment 5•14 years ago
|
||
Okay, i see this now with Bug 614397 fixed.
Comparing with Google Chrome 9.0.597.7 i see no big different Behavior though.
Depending on the Zoom-out-Level, the Cursor is still inside of the Image-Frame or outside at its Border.
Severity: trivial → minor
Component: General → Drag and Drop
Keywords: testcase
Product: Firefox → Core
QA Contact: general → drag-drop
Version: unspecified → Trunk
Comment 6•13 years ago
|
||
Any news ?
I can reproduce this bug with Aurora 16.0a2 (2012-08-20)
Check http://murlock.org/dnd_setdragimage/ : at zoom 0, cursor is in middle of card, at minimal zoom, cursor is outside card picture.
OS: Linux Debian Squeeze 64bit
Regards,
![]() |
||
Comment 7•12 years ago
|
||
Confirmed for Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20121202 Firefox/20.0 ID:20121202030723 for Comment 1's Testcase.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 8•12 years ago
|
||
Same with Firefox 24. It looks like all browsers (Opera presto, Google Chrome, Safari) have the same bug.
Any plans on fixing this?
Comment 9•4 years ago
|
||
Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority.
If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.
Severity: minor → S4
Priority: -- → P5
You need to log in
before you can comment on or make changes to this bug.
Description
•