| 1 |
601
|
doc
|
Drag and Drop Release Notes
|
| 2 |
|
|
|
| 3 |
|
|
2.4.1
|
| 4 |
|
|
No change
|
| 5 |
|
|
|
| 6 |
|
|
2.4.0
|
| 7 |
|
|
* Added configuration option called "dragOnly". If dragOnly is set to true,
|
| 8 |
|
|
all event in the fireEvents method will not fire. These events are:
|
| 9 |
|
|
onInvalidDrop
|
| 10 |
|
|
b4DragOut & onDragOut
|
| 11 |
|
|
onDragEnter
|
| 12 |
|
|
b4DragOver & onDragOver
|
| 13 |
|
|
b4DragDrop & onDragDrop
|
| 14 |
|
|
This config option should be used to drag elements that have no need for
|
| 15 |
|
|
drop interaction. They are elements that just need to move.
|
| 16 |
|
|
|
| 17 |
|
|
2.3.1
|
| 18 |
|
|
* No change
|
| 19 |
|
|
|
| 20 |
|
|
2.3.0
|
| 21 |
|
|
* YAHOO.util.DragDropMgr.stopDrag is now public, and can be used to cancel
|
| 22 |
|
|
a drag in progress. An optional "silent" flag was added to skip the
|
| 23 |
|
|
onMouseUp and endDrag functions when needed (eliminating the need to
|
| 24 |
|
|
supply mouseup page coordinates to these functions).
|
| 25 |
|
|
* DDProxy: the position of the proxy is not set before the drag is confirmed,
|
| 26 |
|
|
preventing auto-scroll from distrupting the user experience.
|
| 27 |
|
|
* Modified the default proxy so that IE properly registers the proxy as
|
| 28 |
|
|
the event target during the drag.
|
| 29 |
|
|
* If a dd instance is created using a dom reference rather than an id, that
|
| 30 |
|
|
reference is stored and used throughout making it possible to control
|
| 31 |
|
|
instances outside the current window.
|
| 32 |
|
|
* The document mousemove listener no longer returns true.
|
| 33 |
|
|
|
| 34 |
|
|
2.2.2
|
| 35 |
|
|
* No change
|
| 36 |
|
|
|
| 37 |
|
|
2.2.1
|
| 38 |
|
|
|
| 39 |
|
|
* Added YAHOO.util.DragDropMgr.interactionInfo, which is
|
| 40 |
|
|
a repository of interaction information accumulated during
|
| 41 |
|
|
the current event loop result, and accessible from the
|
| 42 |
|
|
handlers for the events.
|
| 43 |
|
|
* The region for the dragged element is now cached while
|
| 44 |
|
|
processing the drag and drop events
|
| 45 |
|
|
* List example supports moving an item to an empty list
|
| 46 |
|
|
* Fixed missing html tags in the examples
|
| 47 |
|
|
* The debug version now works when included before the logger is included.
|
| 48 |
|
|
|
| 49 |
|
|
2.2.0
|
| 50 |
|
|
|
| 51 |
|
|
* onMouseDown event is executed before element positions are calculated
|
| 52 |
|
|
* refreshCache refreshes everything if groups array is not provided
|
| 53 |
|
|
* setX/setYConstraint doesn't fail when presented ints cast as strings
|
| 54 |
|
|
|
| 55 |
|
|
0.12.2
|
| 56 |
|
|
|
| 57 |
|
|
* No change
|
| 58 |
|
|
|
| 59 |
|
|
0.12.1
|
| 60 |
|
|
|
| 61 |
|
|
* Added a STRICT_INTERSECT drag and drop interaction mode. This alters the
|
| 62 |
|
|
behavior of DDM::getBestMatch. INTERSECT mode first tests the cursor
|
| 63 |
|
|
location, and if it is over the target that target wins, otherwise it
|
| 64 |
|
|
tests the overlap of the elements. STRICT_INTERSECT mode tests only
|
| 65 |
|
|
the overlap, the largest overlap wins.
|
| 66 |
|
|
|
| 67 |
|
|
* getBestMatch will work for targeted elements that have no overlap.
|
| 68 |
|
|
|
| 69 |
|
|
0.12.0
|
| 70 |
|
|
|
| 71 |
|
|
* The logic to determine if a drag should be initiated has been isolated
|
| 72 |
|
|
to the clickValidator method. This method can be overridden to provide
|
| 73 |
|
|
custom valdiation logic. For example, it is possible to specify hotspots
|
| 74 |
|
|
of any dimension or shape. The provided example shows how to make only
|
| 75 |
|
|
a circular region in the middle of the element initiate a drag.
|
| 76 |
|
|
|
| 77 |
|
|
* Added a new drag and drop event: onInvalidDrop. This is executed when
|
| 78 |
|
|
the dragged element in dropped in a location without a target. Previously
|
| 79 |
|
|
this condition could only detected by implementing handlers for three
|
| 80 |
|
|
other events.
|
| 81 |
|
|
|
| 82 |
|
|
* Now accepts an element reference in lieu of an id. Ids will
|
| 83 |
|
|
be generated if the element does not have one.
|
| 84 |
|
|
|
| 85 |
|
|
* Fixed horizontal autoscroll when scrollTop is zero.
|
| 86 |
|
|
|
| 87 |
|
|
* Added hasOuterHandles property to bypass the isOverTarget check in the
|
| 88 |
|
|
mousedown validation routine. Fixes setOuterHandleElId.
|
| 89 |
|
|
|
| 90 |
|
|
0.11.4
|
| 91 |
|
|
|
| 92 |
|
|
* YAHOO.util.DragDropMgr.swapNode now handles adjacent nodes properly
|
| 93 |
|
|
|
| 94 |
|
|
* Fixed missing variable declarations
|
| 95 |
|
|
|
| 96 |
|
|
0.11.3
|
| 97 |
|
|
|
| 98 |
|
|
* Fixed a JavaScript error that would be generated when trying to implement
|
| 99 |
|
|
DDProxy using the default settings and a tiny element.
|
| 100 |
|
|
|
| 101 |
|
|
* Fixed an error that resulted when constraints were applied to DragDrop
|
| 102 |
|
|
instances.
|
| 103 |
|
|
|
| 104 |
|
|
0.11.2
|
| 105 |
|
|
|
| 106 |
|
|
* Drag and drop will no longer interfere with selecting text on elements
|
| 107 |
|
|
that are not involved in drag and drop.
|
| 108 |
|
|
|
| 109 |
|
|
* The shared drag and drop proxy element now resizes correctly when autoResize
|
| 110 |
|
|
is enabled.
|
| 111 |
|
|
|
| 112 |
|
|
0.11.1
|
| 113 |
|
|
|
| 114 |
|
|
* Fixes an issue where the setXY cache could get out of sync if the element's
|
| 115 |
|
|
offsetParent is changed during onDragDrop.
|
| 116 |
|
|
|
| 117 |
|
|
0.11.0
|
| 118 |
|
|
|
| 119 |
|
|
* The Dom.util.setXY calculation for the initial placement of the dragged
|
| 120 |
|
|
element is cached during the drag, enhancing the drag performance.
|
| 121 |
|
|
|
| 122 |
|
|
* DDProxy no longer enforces having a single proxy element for all instances.
|
| 123 |
|
|
dragElId can be set in the config object in the constructor. If the
|
| 124 |
|
|
element already exists it will use that element, otherwise a new one will
|
| 125 |
|
|
be created with that id.
|
| 126 |
|
|
|
| 127 |
|
|
* DDProxy->borderWidth has been removed. The value is calculated on the fly
|
| 128 |
|
|
instead.
|
| 129 |
|
|
|
| 130 |
|
|
* Added DragDrop->clearTicks and DragDrop->clearConstraints
|
| 131 |
|
|
|
| 132 |
|
|
* All drag and drop constructors now have an additional, optional parameter
|
| 133 |
|
|
call "config". It is an object that can contain properties for a
|
| 134 |
|
|
number of configuration settings.
|
| 135 |
|
|
|
| 136 |
|
|
* Drag and drop will not be disabled for elements that cannot have their
|
| 137 |
|
|
location determined.
|
| 138 |
|
|
|
| 139 |
|
|
* isLegalTarget won't return dd objects that are not targetable.
|
| 140 |
|
|
|
| 141 |
|
|
* Added DragDrop->removeFromGroup.
|
| 142 |
|
|
|
| 143 |
|
|
* Constraints are now applied properly when determining which drag and drop
|
| 144 |
|
|
events should fire.
|
| 145 |
|
|
|
| 146 |
|
|
|
| 147 |
|
|
0.10.0
|
| 148 |
|
|
|
| 149 |
|
|
* Improved the performance when in intersect mode
|
| 150 |
|
|
|
| 151 |
|
|
* It was possible for the drag and drop initialization to be skipped
|
| 152 |
|
|
for very slow loading pages. This was fixed.
|
| 153 |
|
|
|
| 154 |
|
|
* New methods to exclude regions within your drag and drop element:
|
| 155 |
|
|
addInvalidHandleId(), addInvalidHandleClass()
|
| 156 |
|
|
|
| 157 |
|
|
* Added an onAvailable handler that is executed after the initial state is set.
|
| 158 |
|
|
|
| 159 |
|
|
* Drag and drop is more forgiving when the implementer attempts to create the
|
| 160 |
|
|
instance prior to the element being in the document, but after the window
|
| 161 |
|
|
load event has fired.
|