Skip to content

Commit 6a53278

Browse files
removes console logs
1 parent 2352a00 commit 6a53278

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/index.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -247,15 +247,12 @@ function handleRootPointerdown() {
247247
}
248248

249249
function handleRootPointerup() {
250-
console.log("handleRootPointerup");
251250
if (state.pointerDown) state.pointerDown.node.el.draggable = true;
252251

253252
state.pointerDown = undefined;
254253

255254
if (!isSynthDragState(state)) return;
256255

257-
console.log("handleRootPointerup after isSynthDragState", state);
258-
259256
const config = state.currentParent.data.config;
260257

261258
if (isSynthDragState(state)) config.handleEnd(state);
@@ -369,7 +366,6 @@ export function dragAndDrop<T>({
369366
if (isDragState(state) && e.cancelable) pd(e);
370367
},
371368
contextmenu: (e: Event) => {
372-
console.log("document contextmenu");
373369
if (isSynthDragState(state)) pd(e);
374370
},
375371
});
@@ -1018,7 +1014,6 @@ export function setupNode<T>(data: SetupNodeData<T>) {
10181014
if (isDragState(state) && e.cancelable) pd(e);
10191015
},
10201016
contextmenu: (e: Event) => {
1021-
console.log("contextmenu");
10221017
if (isSynthDragState(state)) pd(e);
10231018
},
10241019
});
@@ -1826,11 +1821,8 @@ export function handlePointercancel<T>(
18261821
data: NodeEventData<T>,
18271822
state: DragState<T> | SynthDragState<T> | BaseDragState<T>
18281823
) {
1829-
console.log("handlePointercancel", state);
18301824
if (!isSynthDragState(state)) return;
18311825

1832-
console.log("handlePointercancel after isSynthDragState", state);
1833-
18341826
pd(data.e);
18351827

18361828
if (dropped) {
@@ -1889,21 +1881,16 @@ export function handleEnd<T>(state: DragState<T> | SynthDragState<T>) {
18891881
? config?.synthDropZoneClass
18901882
: config?.dropZoneClass;
18911883

1892-
console.log("handleEnd", dropZoneClass);
1893-
18941884
requestAnimationFrame(() => {
18951885
if (state.originalZIndex !== undefined) {
18961886
state.draggedNode.el.style.zIndex = state.originalZIndex;
18971887
}
18981888

1899-
// Force a style recalculation to ensure we're in the next browser paint cycle
1900-
// First remove drop zone class
19011889
removeClass(
19021890
state.draggedNodes.map((x) => x.el),
19031891
dropZoneClass
19041892
);
19051893

1906-
// Remove other classes in a separate animation frame
19071894
removeClass(
19081895
state.draggedNodes.map((x) => x.el),
19091896
state.initialParent.data?.config?.longPressClass
@@ -1990,7 +1977,6 @@ function initSynthDrag<T>(
19901977
draggedNodes: Array<NodeRecord<T>>,
19911978
rect: DOMRect
19921979
): SynthDragState<T> {
1993-
console.log("initSynthDrag");
19941980
const config = parent.data.config;
19951981

19961982
let dragImage: HTMLElement;

0 commit comments

Comments
 (0)