fluid-dnd 2.2.1 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{HandlerPublisher-DGYFIYDd.cjs → HandlerPublisher-B68XPAcH.cjs} +1 -1
- package/dist/{HandlerPublisher-CRBvk0J7.js → HandlerPublisher-pcX0Zmas.js} +1 -1
- package/dist/core/{configHandler.d.ts → config/configHandler.d.ts} +2 -2
- package/dist/core/{configHandler.js → config/configHandler.js} +4 -5
- package/dist/core/{utils → config}/droppableConfigurator.d.ts +3 -3
- package/dist/core/{utils → config}/droppableConfigurator.js +28 -11
- package/dist/core/dragAndDrop.d.ts +3 -3
- package/dist/core/dragAndDrop.js +53 -9
- package/dist/core/events/changeDraggableStyles.d.ts +4 -0
- package/dist/core/events/changeDraggableStyles.js +40 -0
- package/dist/core/events/dragAndDrop/dragAndDrop.d.ts +9 -0
- package/dist/core/{utils/events/emitEvents.js → events/dragAndDrop/dragAndDrop.js} +26 -145
- package/dist/core/{utils/translate/GetTranslateBeforeDropping.d.ts → events/dragAndDrop/getTranslateBeforeDropping.d.ts} +2 -2
- package/dist/core/{utils/translate/GetTranslateBeforeDropping.js → events/dragAndDrop/getTranslateBeforeDropping.js} +7 -15
- package/dist/core/{utils/translate/GetTranslationByDraggingAndEvent.d.ts → events/dragAndDrop/getTranslationByDraggingAndEvent.d.ts} +2 -2
- package/dist/core/{utils/translate/GetTranslationByDraggingAndEvent.js → events/dragAndDrop/getTranslationByDraggingAndEvent.js} +4 -4
- package/dist/core/events/insert.d.ts +4 -0
- package/dist/core/events/insert.js +80 -0
- package/dist/core/events/remove.d.ts +4 -0
- package/dist/core/events/remove.js +51 -0
- package/dist/core/positioning/autoScroll.d.ts +5 -0
- package/dist/core/positioning/autoScroll.js +51 -0
- package/dist/core/{utils/SetTransform.d.ts → positioning/usePositioning.d.ts} +1 -1
- package/dist/core/{utils/SetTransform.js → positioning/usePositioning.js} +7 -30
- package/dist/core/{utils/tempChildren.d.ts → tempChildren.d.ts} +1 -2
- package/dist/core/{utils/tempChildren.js → tempChildren.js} +22 -29
- package/dist/core/useDraggable.js +16 -12
- package/dist/core/utils/GetStyles.d.ts +3 -3
- package/dist/core/utils/GetStyles.js +48 -36
- package/dist/core/utils/SetStyles.d.ts +3 -3
- package/dist/core/utils/SetStyles.js +12 -12
- package/dist/core/utils/observer.d.ts +1 -0
- package/dist/core/utils/observer.js +8 -0
- package/dist/index-2hBSSK9_.cjs +1 -0
- package/dist/index-DFXw7kYo.js +1223 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.mjs +4 -11
- package/dist/react/utils/ReactLilstConfig.d.ts +2 -2
- package/dist/react/utils/ReactLilstConfig.js +7 -17
- package/dist/svelte/index.cjs +1 -1
- package/dist/svelte/index.mjs +2 -2
- package/dist/svelte/utils/SvelteListCondig.js +1 -1
- package/dist/vue/index.cjs +1 -1
- package/dist/vue/index.mjs +2 -2
- package/dist/vue/utils/VueListCondig.d.ts +3 -3
- package/dist/vue/utils/VueListCondig.js +2 -5
- package/package.json +1 -1
- package/dist/core/utils/config.d.ts +0 -5
- package/dist/core/utils/config.js +0 -57
- package/dist/core/utils/events/emitEvents.d.ts +0 -11
- package/dist/core/utils/scroll.d.ts +0 -4
- package/dist/core/utils/scroll.js +0 -17
- package/dist/index-Dc95WWpv.js +0 -1271
- package/dist/index-DxKyk1TO.cjs +0 -1
- /package/dist/core/utils/{touchDevice.d.ts → typesCheckers.d.ts} +0 -0
- /package/dist/core/utils/{touchDevice.js → typesCheckers.js} +0 -0
package/dist/index.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-2hBSSK9_.cjs");exports.dragAndDrop=e.dragAndDrop;
|
package/dist/index.mjs
CHANGED
package/dist/react/index.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),y=require("../HandlerPublisher-
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),y=require("../HandlerPublisher-B68XPAcH.cjs"),b=require("../index-2hBSSK9_.cjs"),S=require("react-dom");function A(f,i){const[e,n]=u.useState(f),a=u.useRef(e);u.useEffect(()=>{a.current=e},[e]);function d(t,r=!1){const s=a.current[t],c=()=>{n(o=>[...o.slice(0,t),...o.slice(t+1)])};return r?S.flushSync(c):c(),s}function g(t,r,s=!1){const c=()=>{n(o=>[...o.slice(0,t),r,...o.slice(t)])};s?S.flushSync(c):c()}function h(){return e.length}function m(t){return e[t]}function l(t,r,s){b.insertToListEmpty(t,i.current,r,s)}return[e,n,{removeAtEvent:d,insertEvent:g,getLength:h,getValue:m,insertToListEmpty:l}]}const D=new y.HandlerPublisher;function E(f,i){const e=u.useRef(null),[n,a,d]=A(f,e),[g,h,m]=b.dragAndDrop(d,D,i,"data-index");return u.useEffect(()=>{const l=m(e.current);return()=>{l&&l.disconnect()}},[n.length,i]),[e,n,a,h,g]}exports.useDragAndDrop=E;
|
package/dist/react/index.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { useState as S, useRef as h, useEffect as E } from "react";
|
2
|
-
import { H as b } from "../HandlerPublisher-
|
3
|
-
import { i as A, d as C } from "../index-
|
2
|
+
import { H as b } from "../HandlerPublisher-pcX0Zmas.js";
|
3
|
+
import { i as A, d as C } from "../index-DFXw7kYo.js";
|
4
4
|
import { flushSync as p } from "react-dom";
|
5
5
|
function L(l, c) {
|
6
6
|
const [t, n] = S(l), a = h(t);
|
@@ -9,20 +9,13 @@ function L(l, c) {
|
|
9
9
|
}, [t]);
|
10
10
|
function f(e, r = !1) {
|
11
11
|
const s = a.current[e], o = () => {
|
12
|
-
n((i) => [
|
13
|
-
...i.slice(0, e),
|
14
|
-
...i.slice(e + 1)
|
15
|
-
]);
|
12
|
+
n((i) => [...i.slice(0, e), ...i.slice(e + 1)]);
|
16
13
|
};
|
17
14
|
return r ? p(o) : o(), s;
|
18
15
|
}
|
19
16
|
function m(e, r, s = !1) {
|
20
17
|
const o = () => {
|
21
|
-
n((i) => [
|
22
|
-
...i.slice(0, e),
|
23
|
-
r,
|
24
|
-
...i.slice(e)
|
25
|
-
]);
|
18
|
+
n((i) => [...i.slice(0, e), r, ...i.slice(e)]);
|
26
19
|
};
|
27
20
|
s ? p(o) : o();
|
28
21
|
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { RefObject } from
|
2
|
-
import { ListCondig } from
|
1
|
+
import { RefObject } from 'react';
|
2
|
+
import { ListCondig } from '../../core';
|
3
3
|
export declare function useReactListConfig<T, E extends HTMLElement>(items: T[], parent: RefObject<E>): readonly [T[], import("react").Dispatch<import("react").SetStateAction<T[]>>, ListCondig<T>];
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { useEffect, useRef, useState } from
|
2
|
-
import { insertToListEmpty as insertToListEmptyEvent } from
|
3
|
-
// @ts-ignore
|
4
|
-
import { flushSync } from
|
1
|
+
import { useEffect, useRef, useState } from 'react';
|
2
|
+
import { insertToListEmpty as insertToListEmptyEvent } from '../../core/events/insert';
|
3
|
+
// @ts-ignore
|
4
|
+
import { flushSync } from 'react-dom';
|
5
5
|
export function useReactListConfig(items, parent) {
|
6
6
|
const [itemsState, setItemsState] = useState(items);
|
7
7
|
const stateRef = useRef(itemsState);
|
@@ -11,10 +11,7 @@ export function useReactListConfig(items, parent) {
|
|
11
11
|
function removeAtEvent(index, sync = false) {
|
12
12
|
const deletedItem = stateRef.current[index];
|
13
13
|
const removeCallback = () => {
|
14
|
-
setItemsState(prevItems => [
|
15
|
-
...prevItems.slice(0, index),
|
16
|
-
...prevItems.slice(index + 1)
|
17
|
-
]);
|
14
|
+
setItemsState((prevItems) => [...prevItems.slice(0, index), ...prevItems.slice(index + 1)]);
|
18
15
|
};
|
19
16
|
if (sync) {
|
20
17
|
flushSync(removeCallback);
|
@@ -24,15 +21,10 @@ export function useReactListConfig(items, parent) {
|
|
24
21
|
}
|
25
22
|
return deletedItem;
|
26
23
|
}
|
27
|
-
;
|
28
24
|
function insertEvent(index, value, sync = false) {
|
29
25
|
const insertCallback = () => {
|
30
|
-
setItemsState(prevItems => {
|
31
|
-
return [
|
32
|
-
...prevItems.slice(0, index),
|
33
|
-
value,
|
34
|
-
...prevItems.slice(index)
|
35
|
-
];
|
26
|
+
setItemsState((prevItems) => {
|
27
|
+
return [...prevItems.slice(0, index), value, ...prevItems.slice(index)];
|
36
28
|
});
|
37
29
|
};
|
38
30
|
if (sync) {
|
@@ -42,11 +34,9 @@ export function useReactListConfig(items, parent) {
|
|
42
34
|
insertCallback();
|
43
35
|
}
|
44
36
|
}
|
45
|
-
;
|
46
37
|
function getLength() {
|
47
38
|
return itemsState.length;
|
48
39
|
}
|
49
|
-
;
|
50
40
|
function getValue(index) {
|
51
41
|
return itemsState[index];
|
52
42
|
}
|
package/dist/svelte/index.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";var u=Object.defineProperty;var d=(n,t,e)=>t in n?u(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var s=(n,t,e)=>d(n,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../HandlerPublisher-
|
1
|
+
"use strict";var u=Object.defineProperty;var d=(n,t,e)=>t in n?u(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var s=(n,t,e)=>d(n,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../HandlerPublisher-B68XPAcH.cjs"),o=require("../index-2hBSSK9_.cjs");class g{constructor(t){s(this,"items");s(this,"parent");this.items=t}setParent(t){this.parent=t}removeAtEvent(t){const e=this.items;if(e.length<=0)return;const[r]=e.splice(t,1);return r}insertEvent(t,e){this.items.splice(t,0,e)}getLength(){return this.items.length}getValue(t){return this.items[t]}insertToListEmpty(t,e,r){o.insertToListEmpty(t,this.parent,e,r)}}const h=new c.HandlerPublisher;function m(n,t){const e=new g(n),[r,l,a]=o.dragAndDrop(e,h,t,"data-index");return[i=>(e.setParent(i),a(i),{destroy(){}}),l,r]}exports.useDragAndDrop=m;
|
package/dist/svelte/index.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
var l = Object.defineProperty;
|
2
2
|
var d = (n, t, e) => t in n ? l(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
3
3
|
var r = (n, t, e) => d(n, typeof t != "symbol" ? t + "" : t, e);
|
4
|
-
import { H as c } from "../HandlerPublisher-
|
5
|
-
import { i as m, d as u } from "../index-
|
4
|
+
import { H as c } from "../HandlerPublisher-pcX0Zmas.js";
|
5
|
+
import { i as m, d as u } from "../index-DFXw7kYo.js";
|
6
6
|
class h {
|
7
7
|
constructor(t) {
|
8
8
|
r(this, "items");
|
package/dist/vue/index.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";var c=Object.defineProperty;var h=(n,e,t)=>e in n?c(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var s=(n,e,t)=>h(n,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),g=require("../HandlerPublisher-
|
1
|
+
"use strict";var c=Object.defineProperty;var h=(n,e,t)=>e in n?c(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var s=(n,e,t)=>h(n,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),g=require("../HandlerPublisher-B68XPAcH.cjs"),u=require("../index-2hBSSK9_.cjs"),v=(n,e)=>{const t=n.value;if(t.length<=0)return;const[r]=t.splice(e,1);return r},d=(n,e,t)=>{n.value.splice(e,0,t)},m=n=>n.value.length,p=(n,e)=>n.value[e];class V{constructor(e,t){s(this,"items");s(this,"parent");this.items=e,this.parent=t}removeAtEvent(e){return v(this.items,e)}insertEvent(e,t){return d(this.items,e,t)}getLength(){return m(this.items)}getValue(e){return p(this.items,e)}insertToListEmpty(e,t,r){u.insertToListEmpty(e,this.parent.value,t,r)}}const A=new g.HandlerPublisher;function L(n,e){const t=i.ref();var r=new V(n,t);const[l,o,a]=u.dragAndDrop(r,A,e);return i.watch(t,()=>{a(t.value)}),[t,o,l]}exports.useDragAndDrop=L;
|
package/dist/vue/index.mjs
CHANGED
@@ -2,8 +2,8 @@ var l = Object.defineProperty;
|
|
2
2
|
var u = (n, t, e) => t in n ? l(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
3
3
|
var r = (n, t, e) => u(n, typeof t != "symbol" ? t + "" : t, e);
|
4
4
|
import { ref as c, watch as m } from "vue";
|
5
|
-
import { H as h } from "../HandlerPublisher-
|
6
|
-
import { i as p, d as v } from "../index-
|
5
|
+
import { H as h } from "../HandlerPublisher-pcX0Zmas.js";
|
6
|
+
import { i as p, d as v } from "../index-DFXw7kYo.js";
|
7
7
|
const g = (n, t) => {
|
8
8
|
const e = n.value;
|
9
9
|
if (e.length <= 0)
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { CoreConfig } from
|
2
|
-
import { ListCondig } from
|
3
|
-
import { Ref } from
|
1
|
+
import { CoreConfig } from '../../core';
|
2
|
+
import { ListCondig } from '../../core';
|
3
|
+
import { Ref } from 'vue';
|
4
4
|
export declare class VueListCondig<T> implements ListCondig<T> {
|
5
5
|
private items;
|
6
6
|
private parent;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { getLength, getValue, onInsertEventOnList, removeAtEventOnList } from
|
2
|
-
import { insertToListEmpty } from
|
1
|
+
import { getLength, getValue, onInsertEventOnList, removeAtEventOnList } from './DropMethods';
|
2
|
+
import { insertToListEmpty } from '../../core/events/insert';
|
3
3
|
export class VueListCondig {
|
4
4
|
items;
|
5
5
|
parent;
|
@@ -10,15 +10,12 @@ export class VueListCondig {
|
|
10
10
|
removeAtEvent(index) {
|
11
11
|
return removeAtEventOnList(this.items, index);
|
12
12
|
}
|
13
|
-
;
|
14
13
|
insertEvent(index, value) {
|
15
14
|
return onInsertEventOnList(this.items, index, value);
|
16
15
|
}
|
17
|
-
;
|
18
16
|
getLength() {
|
19
17
|
return getLength(this.items);
|
20
18
|
}
|
21
|
-
;
|
22
19
|
getValue(index) {
|
23
20
|
return getValue(this.items, index);
|
24
21
|
}
|
package/package.json
CHANGED
@@ -1,5 +0,0 @@
|
|
1
|
-
import { ListCondig, MapFrom } from '..';
|
2
|
-
import { Config, CoreConfig } from '..';
|
3
|
-
import { DroppableConfig } from '../configHandler';
|
4
|
-
export declare const getConfig: <T>(listCondig: ListCondig<T>, config?: Config<T>) => CoreConfig<T>;
|
5
|
-
export declare const MapConfig: <T>(coreConfig: DroppableConfig<any>, mapFrom: MapFrom<T>) => CoreConfig<any>;
|
@@ -1,57 +0,0 @@
|
|
1
|
-
import { VERTICAL } from '..';
|
2
|
-
import { DRAGGABLE_CLASS } from './classes';
|
3
|
-
export const getConfig = (listCondig, config) => {
|
4
|
-
const onRemoveAtEvent = (index, sync) => {
|
5
|
-
return listCondig.removeAtEvent(index, sync);
|
6
|
-
};
|
7
|
-
const onInsertEvent = (index, value, sync) => {
|
8
|
-
return listCondig.insertEvent(index, value, sync);
|
9
|
-
};
|
10
|
-
const onGetLegth = () => {
|
11
|
-
return listCondig.getLength();
|
12
|
-
};
|
13
|
-
const onGetValue = (index) => {
|
14
|
-
return listCondig.getValue(index);
|
15
|
-
};
|
16
|
-
const defaultMapFrom = (object) => {
|
17
|
-
return object;
|
18
|
-
};
|
19
|
-
return {
|
20
|
-
direction: config?.direction ?? VERTICAL,
|
21
|
-
handlerSelector: config?.handlerSelector ?? DRAGGABLE_CLASS,
|
22
|
-
draggingClass: config?.draggingClass ?? 'dragging',
|
23
|
-
droppableClass: config?.droppableClass ?? 'droppable-hover',
|
24
|
-
isDraggable: config?.isDraggable ?? (() => true),
|
25
|
-
onDragStart: config?.onDragStart ?? (() => { }),
|
26
|
-
onDragEnd: config?.onDragEnd ?? (() => { }),
|
27
|
-
droppableGroup: config?.droppableGroup,
|
28
|
-
onRemoveAtEvent,
|
29
|
-
onInsertEvent,
|
30
|
-
onGetLegth,
|
31
|
-
onGetValue,
|
32
|
-
animationDuration: config?.animationDuration ?? 200,
|
33
|
-
removingClass: config?.removingClass ?? 'removing',
|
34
|
-
insertingFromClass: config?.insertingFromClass ?? 'from-inserting',
|
35
|
-
delayBeforeRemove: config?.delayBeforeRemove ?? 200,
|
36
|
-
delayBeforeInsert: config?.delayBeforeInsert ?? 200,
|
37
|
-
mapFrom: config?.mapFrom ?? defaultMapFrom,
|
38
|
-
delayBeforeTouchMoveEvent: config?.delayBeforeTouchMoveEvent ?? 150,
|
39
|
-
coordinateTransform: config?.coordinateTransform ?? [(coordinate) => coordinate]
|
40
|
-
};
|
41
|
-
};
|
42
|
-
export const MapConfig = (coreConfig, mapFrom) => {
|
43
|
-
const { config, droppable } = coreConfig;
|
44
|
-
const { onInsertEvent, onDragEnd } = config;
|
45
|
-
const mapOnInsertEvent = (index, value) => {
|
46
|
-
return onInsertEvent(index, mapFrom(value, droppable), true);
|
47
|
-
};
|
48
|
-
const mapOnDragEnd = (eventData) => {
|
49
|
-
const { index, value } = eventData;
|
50
|
-
onDragEnd({ index, value: mapFrom(value, droppable) });
|
51
|
-
};
|
52
|
-
return {
|
53
|
-
...config,
|
54
|
-
onDragEnd: mapOnDragEnd,
|
55
|
-
onInsertEvent: mapOnInsertEvent
|
56
|
-
};
|
57
|
-
};
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { WindowScroll } from "../../../../index";
|
2
|
-
import { CoreConfig } from "../..";
|
3
|
-
import { DRAG_EVENT, START_DRAG_EVENT, START_DROP_EVENT } from "..";
|
4
|
-
import { DroppableConfig } from "../../configHandler";
|
5
|
-
import HandlerPublisher from '../../HandlerPublisher';
|
6
|
-
type DraggingEvent = typeof DRAG_EVENT | typeof START_DRAG_EVENT;
|
7
|
-
type DragAndDropEvent = DraggingEvent | DropEvent;
|
8
|
-
type DropEvent = "drop" | typeof START_DROP_EVENT;
|
9
|
-
export default function useEmitEvents<T>(currentConfig: CoreConfig<T>, index: number, parent: HTMLElement, droppableGroupClass: string | null, handlerPublisher: HandlerPublisher, endDraggingAction: () => void): readonly [(draggedElement: HTMLElement, event: DragAndDropEvent, initialWindowScroll: WindowScroll, droppableConfig: DroppableConfig<T> | undefined, positionOnSourceDroppable?: number) => void, (targetIndex: number, draggedElement: HTMLElement, droppableConfig: DroppableConfig<T>, onFinishRemoveEvent: (element: HTMLElement) => void) => void, (targetIndex: number, draggedElement: HTMLElement, droppable: HTMLElement, value: T, startInserting: () => void) => void, (draggedElement: HTMLElement) => void, (element: Element, force: boolean) => void];
|
10
|
-
export declare const insertToListEmpty: <T>(config: CoreConfig<T>, droppable: HTMLElement | undefined | null, targetIndex: number, value: T) => void;
|
11
|
-
export {};
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { ElementScroll } from "index";
|
2
|
-
import { Direction } from "..";
|
3
|
-
export declare const scrollByDirection: (element: HTMLElement, direction: Direction, scrollAmount: number) => void;
|
4
|
-
export declare const scrollPercent: (direction: Direction, droppable: HTMLElement, droppableScroll: ElementScroll) => number;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { getPropByDirection } from "./GetStyles";
|
2
|
-
export const scrollByDirection = (element, direction, scrollAmount) => {
|
3
|
-
if (scrollAmount == 0) {
|
4
|
-
return;
|
5
|
-
}
|
6
|
-
if (direction === "vertical") {
|
7
|
-
element.scrollBy(0, scrollAmount);
|
8
|
-
}
|
9
|
-
else {
|
10
|
-
element.scrollBy(scrollAmount, 0);
|
11
|
-
}
|
12
|
-
};
|
13
|
-
export const scrollPercent = (direction, droppable, droppableScroll) => {
|
14
|
-
const { scrollDistance, clientDistance, scrollElement } = getPropByDirection(direction);
|
15
|
-
return (droppableScroll[scrollElement] /
|
16
|
-
(droppable[scrollDistance] - droppable[clientDistance]));
|
17
|
-
};
|