#3008 closed bug (fixed)
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.
Change History (2)
comment:1 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 15 years ago by
Milestone: | 1.5 → 1.5.1 |
---|
This recently has been fixed. Please try again with the latest trunk version of the code.