UNPKG

fluid-dnd

Version:

An agnostic drag and drop library to sort all kind of lists. With current support for vue, react and svelte

7 lines (6 loc) 418 B
import { Direction } from '../..'; import { Translate, WindowScroll } from '../../../../index'; export default function getTranslateBeforeDropping(direction: Direction, siblings: Element[], sourceIndex: number, targetIndex: number, scroll: WindowScroll, previousScroll: { scrollLeft: number; scrollTop: number; }, initialWindowScroll: WindowScroll, droppable: HTMLElement, draggable?: HTMLElement): Translate;