Skip to main content

Search and Top Navigation

#3008 closed bug (fixed)

Opened June 16, 2008 01:34AM UTC

Closed June 24, 2008 08:57PM UTC

Last modified June 26, 2008 07:07PM UTC

Initial drag event triggered on draggable even if mouse not moved

Reported by: JohnnyCee Owned by: paul
Priority: minor Milestone: 1.5.1
Component: ui.draggable Version: 1.5
Keywords: Cc:
Blocked by: Blocking:
Description

If you specify a handler for the drag property of a draggable element, and click on the element without moving the mouse, a drag event is triggered. Subsequent drag events are only triggered if the mouse moves.

I think the drag handler should only be triggered after the mouse has been moved. I don't think a draggable needs an initial drag event to signal a potential move: the start event does that already.

If start stays as-is, and drag changes as I have described, then scripts can take initial "element might move" actions upon a start event, and take "element has actually moved" actions upon a drag event. As it stands now, scripts would have to compare coordinates to determine whether a move has taken place, and based on application circumstances, that may or may not be easy.

Attachments (0)
Change History (2)

Changed June 24, 2008 08:57PM UTC by paul comment:1

resolution: → fixed
status: newclosed

This recently has been fixed. Please try again with the latest trunk version of the code.

Changed June 26, 2008 07:07PM UTC by paul comment:2

milestone: 1.51.5.1