Skip to main content

Drag&Drop library

That's the lowest library, that controls drag&drop events.

It manipulates directly the objects through CSS transform, so all transform changes can be applied only to the other elements except dragged one (may change with library upgrades).

All dragged objects are stored in dragList (private array variable) as Objects (info). More info about it is here

CurrentTarget is an object, that can be impacted, and target is the object that's being moved.

Example: topbar - currentTarget, window - target

Explaining simpler: add -> listen -> drop

Library functions:

All the examples are only examples, you can use this library in the way you want, limited only with your creativity and skills.