Skip to main content

Search and Top Navigation

#8383 closed bug (notabug)

Opened June 05, 2012 08:50PM UTC

Closed June 05, 2012 08:54PM UTC

Draggable on img invokes Chrome's drag behavior

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

Attachments (0)
Change History (2)

Changed June 05, 2012 08:52PM UTC by david.bernal@gmail.com comment:1

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

Changed June 05, 2012 08:54PM UTC by scottgonzalez comment:2

resolution: → invalid
status: newclosed