Makes an element draggable
- Source:
Methods
(static) destroy()
Removes all dnd handlers
- Source:
(abstract, static) drag(delta)
Changes element position on mouse move
Parameters:
Name | Type | Description |
---|---|---|
delta |
coordinates |
- Source:
(abstract, static) normalizeCoords(delta) → {coordinates}
Checks if a new element position won't cross the border
and changes delta object to avoid border crossing
Parameters:
Name | Type | Description |
---|---|---|
delta |
coordinates |
- Source:
Returns:
- Type
- coordinates
(static) removeDndHandlers()
Removes all handlers
- Source: