At ricoDragDrop.js
on
updateSelection: function( draggable, extendSelection ) {
function, there is a call for
this.currentDragObjects.removeItem(draggable);
This removeItem() function call which doesnt exist in Array(), and since
the only real way to remove and element from an Array on JS is by index
or ==, not ===, this needs to get implemented. As it seems this is truly
the only thing holding up the Multiple object DND.
=====================
Another observartion is, you might want to add setTimout() to dragging,
because its too sensitive now that you might want to wait couple of
milliseconds on mouseDown() so that by mistake you dont get the
draggable object moving.
=====================
Last thing is, when by mistake you move the object out of the dropzone
since its too sensitive to mouse down event, it paints itself little
below to where it was before, instead of putting itself back to where it
started (where in my case, i initilize all the draggable objects in a
dropzone).
Best
Cem
on 27.11.2007 07:45
on 23.01.2008 12:34
A quick fix for the removeItem problem would be to add this to
prototype.
836,843d835
< removeItem: function(item) {
< for (var i=0; i<this.length; i++) {
< if(this[i] == item)
< this.pop(i);
< }
<
< },
<
this is for prototype 1.6.0
-Torgeir
on 27.01.2008 17:16
You can change the line with removeItem to: this.currentDragObjects=this.currentDragObjects.without(draggable); Matt


