@flowgram.ai/renderer 1.0.11 → 1.0.12
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/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -2392,6 +2392,9 @@ var FlowDragLayer = class extends import_core15.Layer {
|
|
|
2392
2392
|
const scale = this.playgroundConfigEntity.finalScale;
|
|
2393
2393
|
if (this.containerRef.current) {
|
|
2394
2394
|
const dragNode = this.containerRef.current.children?.[0];
|
|
2395
|
+
if (!dragNode) {
|
|
2396
|
+
return;
|
|
2397
|
+
}
|
|
2395
2398
|
const clientBounds = this.playgroundConfigEntity.getClientBounds();
|
|
2396
2399
|
const dragBlockX = event.clientX - (this.pipelineNode.offsetLeft || 0) - clientBounds.x - (dragNode.clientWidth - this.dragOffset.x) * scale;
|
|
2397
2400
|
const dragBlockY = event.clientY - (this.pipelineNode.offsetTop || 0) - clientBounds.y - (dragNode.clientHeight - this.dragOffset.y) * scale;
|