Switch back to contentComponent

This commit is contained in:
drew08t
2023-10-26 15:34:44 -07:00
parent 3e85b9f3ea
commit ba908f7235
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -385,7 +385,7 @@ export class Scene {
this.selecto = new Selecto({
container: this.div,
rootContainer: this.transformComponentRef?.current?.instance.wrapperComponent,
rootContainer: this.transformComponentRef?.current?.instance.contentComponent,
selectableTargets: targetElements,
toggleContinueSelect: 'shift',
selectFromInside: false,
@@ -105,7 +105,7 @@ export class Connections {
const elementBoundingRect = element.div!.getBoundingClientRect();
const transformRef = this.scene.transformComponentRef?.current;
const parentBoundingRect = transformRef?.instance.wrapperComponent?.getBoundingClientRect();
const parentBoundingRect = transformRef?.instance.contentComponent?.getBoundingClientRect();
const transformScale = transformRef?.instance.transformState.scale ?? 1;
const relativeTop = elementBoundingRect.top - (parentBoundingRect?.top ?? 0);