Skip to content

Commit 946d4f3

Browse files
adds logs in initSynthDrag and handleRootPointerup
1 parent 7b3db55 commit 946d4f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,15 @@ function handleRootPointerdown() {
225225
}
226226

227227
function handleRootPointerup() {
228+
console.log("handleRootPointerup");
228229
if (state.pointerDown) state.pointerDown.node.el.draggable = true;
229230

230231
state.pointerDown = undefined;
231232

232233
if (!isSynthDragState(state)) return;
233234

235+
console.log("handleRootPointerup after isSynthDragState", state);
236+
234237
const config = state.currentParent.data.config;
235238

236239
if (isSynthDragState(state)) config.handleEnd(state);
@@ -1952,6 +1955,7 @@ function initSynthDrag<T>(
19521955
draggedNodes: Array<NodeRecord<T>>,
19531956
rect: DOMRect
19541957
): SynthDragState<T> {
1958+
console.log("initSynthDrag");
19551959
const config = parent.data.config;
19561960

19571961
let dragImage: HTMLElement;

0 commit comments

Comments
 (0)