📄️ About Drag&Drop
DragAndDrop contains all functionality to really move and drop Objects.
📄️ add
DragAndDrop.add builds info Object and pushes it in dragList. This info Object contains all information to manipulate the drag process.
📄️ click
DragAndDrop.click is just an extended click event, that executes a function for target and currentTarget, when currentTarget is clicked. Rarely used.
📄️ drop
DragAndDrop.drop is executed on mouseup event and uses info to end drag.
📄️ dropAll
DragAndDrop.dropAll is used to drop all objects as if it was drop for every dragList item, but in add you can specify a drop_f function, that will be executed only in that case.
📄️ get
DragAndDrop.get is used to get private dragList to view all currently dragged Objects.
📄️ listen
DragAndDrop.listen controls all movements iterating through dragList. Theoretically, it can move many objects at the same time as long as they are in dragList.
📄️ wipe
DragAndDrop.wipe is used to wipe dragList. This is a hard variation of dropAll method and it shouldn't be used directly from code.