Switch back to contentComponent
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user