fluid-dnd
Version:
An agnostic drag and drop library to sort all kind of lists. With current support for vue, react and svelte
11 lines (10 loc) • 440 B
JavaScript
export const START_DRAG_EVENT = 'startDrag';
export const DRAG_EVENT = 'drag';
export const START_DROP_EVENT = 'startDrop';
export const DROP_EVENT = 'drop';
export const TEMP_CHILD_CLASS = 'temp-child';
export const draggableTargetTimingFunction = 'cubic-bezier(0.2, 0, 0, 1)';
export const IsDropEvent = (event) => {
return event === DROP_EVENT || event === START_DROP_EVENT;
};
export const NONE_TRANSLATE = { height: 0, width: 0 };