Opened 11 years ago
Closed 11 years ago
#8383 closed bug (notabug)
Draggable on img invokes Chrome's drag behavior
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.core | Version: | 1.8.20 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When I use draggable on an img, it first does the browser's drag behavior, rather than doing the expected drag action. Once I release the mouse button, the img moves around with the cursor (the expected behavior when the mouse is down) until I click on the image again.
If I add a handler to the mousedown event that calls preventDefault, this problem doesn't happen.
Here is a fiddle: http://jsfiddle.net/2CJEf/4/
From what I can tell, the problem happens in Chrome and Safari, but not Firefox. I haven't tried any other browsers.
Change History (2)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Oh, by the way, if you look at the fiddle, jQuery UI is added under the manage resources section! I couldn't find a way to use the jsFiddle Choose Framework panel to add 1.8.2. This issue does not occur in 1.8.18