Impossible to make <button>s draggable
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, defect)
Tracking
()
Webcompat Priority | P3 |
People
(Reporter: giorgio.liscio, Unassigned)
References
Details
Attachments
(1 file, 1 obsolete file)
766 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; WOW64; en-US; rv:1.9.3a5pre) Gecko/20100525 Minefield/3.7a5pre ( .NET CLR 3.5.30729) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.2; WOW64; en-US; rv:1.9.3a5pre) Gecko/20100525 Minefield/3.7a5pre ( .NET CLR 3.5.30729) hi, as summary says, button can't be draggable see the simple test attached Reproducible: Always
Comment 2•8 years ago
|
||
Any news about this? Thanks
Comment 3•8 years ago
|
||
Firefox requires 'something' (that we call 'init' here) to be set in dragstart event to initialize the rest of drag events to occur. This is probably because all of the DOM elements are draggable="true" by default in XUL. (reference: https://bugzilla.mozilla.org/show_bug.cgi?id=646823#c4) Example: <div id="something" draggable="true" ondragstart="event.dataTransfer.setData('text/plain', 'node');">Drag me</div> Chrome doesn't require such 'initialization'.
Comment 4•7 years ago
|
||
I also get this bug and it's quite annoying. It works perfectly on Chrome but not on Firefox.
Comment 5•7 years ago
|
||
I can confirm that this bug occurs on Firefox 53.0.3 (64-bit) running on Linux. (Ubuntu 16.04). I am aware of no work-around other than to redefine the <button> as another element, which isn't semantically valid for my scenario.
Comment 6•7 years ago
|
||
I can also confirm on Firefox 52.0 LTS on Windows 10.
Comment 7•7 years ago
|
||
(In reply to Ethan Jaszewski from comment #6) > I can also confirm on Firefox 52.0 LTS on Windows 10. This should read ESR, not LTS. Full user agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0
Updated•7 years ago
|
Comment 8•7 years ago
|
||
It is still no working to this day.
Comment 9•6 years ago
|
||
Can confirm bug still exists in Firefox 60.0.1 on macOS. User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:60.0) Gecko/20100101 Firefox/60.0
Comment 10•6 years ago
|
||
Dear Mozilla, Respectfully, this bug has been open for 8 years. Could somebody please acknowledge it and deliver a fix? It appears to be affecting quite a few people.
Comment 11•6 years ago
|
||
This bug still persists in Firefox 61.0.1 in MacOS and Windows. It is currently blocking a critical feature of our application from working and the only workaround would force us to compromise on semantic markup. As an organization committed to accessibility, I hope Mozilla can dedicate some resources to fixing this longstanding bug.
Comment 12•6 years ago
|
||
Our drag and drop features, needs to be working on img tags, this bug stopping all that...
Updated•5 years ago
|
Updated•5 years ago
|
Comment 13•5 years ago
|
||
Migrating Webcompat whiteboard priorities to project flags. See bug 1547409.
Comment 14•5 years ago
|
||
See bug 1547409. Migrating whiteboard priority tags to program flags.
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 15•5 years ago
|
||
Any updates?
This bug has been open for 10 years and still exists in FF 70.0.1.
Comment 16•4 years ago
|
||
Firefox 74.0.1 on windows:
A button is draggable only if you start dragging from its content. Not draggable if you start from the padding area
If no html content(even if it has css content) => Not draggable at all
Updated•2 years ago
|
Comment 17•2 years ago
|
||
It seems the original testcase provided in comment 1 has to some extent be solved, but the testcase provided in comment 16 shows it's still a problem in other situation.
This is a simplified testcase of the one in comment 16 which shows the problem. All three buttons should be equally draggable in this testcase.
Comment 18•2 years ago
|
||
Lack of draggable support can inhibit the adoption of semantic <button>
where they are deserved, and force developers to use role="button"
with other elements instead.
Updated•2 years ago
|
Description
•