1 Drag and Drop Release Notes
4 * YAHOO.util.DragDropMgr.stopDrag is now public, and can be used to cancel
5 a drag in progress. An optional "silent" flag was added to skip the
6 onMouseUp and endDrag functions when needed (eliminating the need to
7 supply mouseup page coordinates to these functions).
8 * DDProxy: the position of the proxy is not set before the drag is confirmed,
9 preventing auto-scroll from distrupting the user experience.
10 * Modified the default proxy so that IE properly registers the proxy as
11 the event target during the drag.
12 * If a dd instance is created using a dom reference rather than an id, that
13 reference is stored and used throughout making it possible to control
14 instances outside the current window.
15 * The document mousemove listener no longer returns true.
22 * Added YAHOO.util.DragDropMgr.interactionInfo, which is
23 a repository of interaction information accumulated during
24 the current event loop result, and accessible from the
25 handlers for the events.
26 * The region for the dragged element is now cached while
27 processing the drag and drop events
28 * List example supports moving an item to an empty list
29 * Fixed missing html tags in the examples
30 * The debug version now works when included before the logger is included.
34 * onMouseDown event is executed before element positions are calculated
35 * refreshCache refreshes everything if groups array is not provided
36 * setX/setYConstraint doesn't fail when presented ints cast as strings
44 * Added a STRICT_INTERSECT drag and drop interaction mode. This alters the
45 behavior of DDM::getBestMatch. INTERSECT mode first tests the cursor
46 location, and if it is over the target that target wins, otherwise it
47 tests the overlap of the elements. STRICT_INTERSECT mode tests only
48 the overlap, the largest overlap wins.
50 * getBestMatch will work for targeted elements that have no overlap.
54 * The logic to determine if a drag should be initiated has been isolated
55 to the clickValidator method. This method can be overridden to provide
56 custom valdiation logic. For example, it is possible to specify hotspots
57 of any dimension or shape. The provided example shows how to make only
58 a circular region in the middle of the element initiate a drag.
60 * Added a new drag and drop event: onInvalidDrop. This is executed when
61 the dragged element in dropped in a location without a target. Previously
62 this condition could only detected by implementing handlers for three
65 * Now accepts an element reference in lieu of an id. Ids will
66 be generated if the element does not have one.
68 * Fixed horizontal autoscroll when scrollTop is zero.
70 * Added hasOuterHandles property to bypass the isOverTarget check in the
71 mousedown validation routine. Fixes setOuterHandleElId.
75 * YAHOO.util.DragDropMgr.swapNode now handles adjacent nodes properly
77 * Fixed missing variable declarations
81 * Fixed a JavaScript error that would be generated when trying to implement
82 DDProxy using the default settings and a tiny element.
84 * Fixed an error that resulted when constraints were applied to DragDrop
89 * Drag and drop will no longer interfere with selecting text on elements
90 that are not involved in drag and drop.
92 * The shared drag and drop proxy element now resizes correctly when autoResize
97 * Fixes an issue where the setXY cache could get out of sync if the element's
98 offsetParent is changed during onDragDrop.
102 * The Dom.util.setXY calculation for the initial placement of the dragged
103 element is cached during the drag, enhancing the drag performance.
105 * DDProxy no longer enforces having a single proxy element for all instances.
106 dragElId can be set in the config object in the constructor. If the
107 element already exists it will use that element, otherwise a new one will
108 be created with that id.
110 * DDProxy->borderWidth has been removed. The value is calculated on the fly
113 * Added DragDrop->clearTicks and DragDrop->clearConstraints
115 * All drag and drop constructors now have an additional, optional parameter
116 call "config". It is an object that can contain properties for a
117 number of configuration settings.
119 * Drag and drop will not be disabled for elements that cannot have their
122 * isLegalTarget won't return dd objects that are not targetable.
124 * Added DragDrop->removeFromGroup.
126 * Constraints are now applied properly when determining which drag and drop
132 * Improved the performance when in intersect mode
134 * It was possible for the drag and drop initialization to be skipped
135 for very slow loading pages. This was fixed.
137 * New methods to exclude regions within your drag and drop element:
138 addInvalidHandleId(), addInvalidHandleClass()
140 * Added an onAvailable handler that is executed after the initial state is set.
142 * Drag and drop is more forgiving when the implementer attempts to create the
143 instance prior to the element being in the document, but after the window
144 load event has fired.