Opened 7 years ago

Closed 7 years ago

#8383 closed bug (notabug)

Draggable on img invokes Chrome's drag behavior

Reported by: david.bernal@… 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.

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

Change History (2)

comment:1 Changed 7 years ago by david.bernal@…

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 7 years ago by Scott González

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