Skip to content

Commit b6f5b41

Browse files
committed
fix pointer event handling in NodeTransformer
1 parent 85c26eb commit b6f5b41

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

libs/visual-programming-system/src/canvas-app/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,11 @@ export class FlowCanvas<T extends BaseNodeInfo>
566566
!rect?.canvasAppInstance?.canvas?.id
567567
) {
568568
if (currentState.canvasNode?.id !== this.canvas.id) {
569+
// console.log(
570+
// 'pointermove canvas cancelled',
571+
// currentState.canvasNode?.id,
572+
// this.canvas.id
573+
// );
569574
return;
570575
}
571576

libs/visual-programming-system/src/components/node-transformer.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,9 @@ export class NodeTransformer<T extends BaseNodeInfo> {
395395
pointerMove: this.onPointerMoveHelper,
396396
pointerUp: this.onPointerUpHelper,
397397
},
398-
this.nodeTransformElement as INodeComponent<T>
398+
this.nodeTransformElement as INodeComponent<T>,
399+
undefined,
400+
this.canvas
399401
);
400402
event.stopPropagation();
401403
return false;

0 commit comments

Comments
 (0)