PennController for IBEX › Forums › Support › DragDrop features › Reply To: DragDrop features
October 20, 2022 at 3:59 pm
#9602
Jeremy
Keymaster
Note that I found another bug with the suggestion above: creating a second DragDrop element messes with detecting dropping events on it, hence never validating its wait
command. So instead of creating two DragDrop elements, one should create and reuse a single one:
newDragDrop("dragdrop") .addDrag(getImage("bear")) .addDrop(getCanvas("flowerCV")) .wait() .removeDrag(getImage("bear")) .removeDrop(getCanvas("flowerCV")) , // ... getDragDrop("dragdrop") .addDrag(getCanvas("flowerCV")) .addDrop(getCanvas("boxCV")) .wait()
Jeremy