diff --git a/public/app/features/canvas/runtime/scene.tsx b/public/app/features/canvas/runtime/scene.tsx index 5c454bbcb23..001100523e9 100644 --- a/public/app/features/canvas/runtime/scene.tsx +++ b/public/app/features/canvas/runtime/scene.tsx @@ -385,7 +385,7 @@ export class Scene { this.selecto = new Selecto({ container: this.div, - rootContainer: this.div, + rootContainer: this.transformComponentRef?.current?.instance.wrapperComponent, selectableTargets: targetElements, toggleContinueSelect: 'shift', selectFromInside: false, @@ -706,6 +706,7 @@ export class Scene { this.moveable.zoom = 1 / scale; } }} + limitToBounds={true} >