From ff28bcb0b206b8dbf2a0c1626dc3548f73c54e05 Mon Sep 17 00:00:00 2001 From: Aleksandar Petrov <8142643+aleks-p@users.noreply.github.com> Date: Fri, 28 Nov 2025 17:37:03 -0400 Subject: [PATCH] Fix dragging when zoomed out / in --- .../explore-map/components/ExploreMapPanelContainer.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/app/features/explore-map/components/ExploreMapPanelContainer.tsx b/public/app/features/explore-map/components/ExploreMapPanelContainer.tsx index 01778d18858..796e6da8fc8 100644 --- a/public/app/features/explore-map/components/ExploreMapPanelContainer.tsx +++ b/public/app/features/explore-map/components/ExploreMapPanelContainer.tsx @@ -28,6 +28,7 @@ export function ExploreMapPanelContainer({ panel }: ExploreMapPanelContainerProp const rndRef = useRef(null); const selectedPanelId = useSelector((state) => state.exploreMap.selectedPanelId); + const viewport = useSelector((state) => state.exploreMap.viewport); const isSelected = selectedPanelId === panel.id; const handleDragStop = useCallback( @@ -94,6 +95,7 @@ export function ExploreMapPanelContainer({ panel }: ExploreMapPanelContainerProp ref={rndRef} position={{ x: panel.position.x, y: panel.position.y }} size={{ width: panel.position.width, height: panel.position.height }} + scale={viewport.zoom} onDragStop={handleDragStop} onResizeStop={handleResizeStop} onMouseDown={handleMouseDown}