From 792a26800b8fedc5768e20aa80e3036e54fa4f0a Mon Sep 17 00:00:00 2001 From: oscarkilhed Date: Thu, 8 Jan 2026 09:31:11 +0100 Subject: [PATCH] Remove panel selection during drag that opens edit pane The code was selecting the panel after the drag distance threshold was reached, which caused the edit pane to open during dragging. This was unintended behavior. --- .../scene/DashboardLayoutOrchestrator.tsx | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/public/app/features/dashboard-scene/scene/DashboardLayoutOrchestrator.tsx b/public/app/features/dashboard-scene/scene/DashboardLayoutOrchestrator.tsx index 3304364bfeb..ef9bb042f6d 100644 --- a/public/app/features/dashboard-scene/scene/DashboardLayoutOrchestrator.tsx +++ b/public/app/features/dashboard-scene/scene/DashboardLayoutOrchestrator.tsx @@ -13,7 +13,7 @@ import { VizPanel, SceneGridItemLike, } from '@grafana/scenes'; -import { createPointerDistance, useStyles2 } from '@grafana/ui'; +import { useStyles2 } from '@grafana/ui'; import { DashboardScene } from './DashboardScene'; import { AutoGridLayoutManager } from './layout-auto-grid/AutoGridLayoutManager'; @@ -53,8 +53,6 @@ export class DashboardLayoutOrchestrator extends SceneObjectBase | null = null; private _lastHoveredTabKey: string | null = null; /** Track if item was detached from source during cross-tab drag */ @@ -117,9 +115,6 @@ export class DashboardLayoutOrchestrator extends SceneObjectBase