Opened 11 years ago

Closed 11 years ago

#8383 closed bug (notabug)

Draggable on img invokes Chrome's drag behavior

Reported by: [email protected] Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.core Version: 1.8.20
Keywords: Cc:
Blocked by: Blocking:


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:

From what I can tell, the problem happens in Chrome and Safari, but not Firefox. I haven't tried any other browsers.

This looks a lot like #6223, and related to #5678.

Change History (2)

comment:1 Changed 11 years ago by [email protected]

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

comment:2 Changed 11 years ago by Scott González

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.