From 6af9f45a7435f65c2b227ccb30d8c6f2101341e3 Mon Sep 17 00:00:00 2001 From: peterkogo Date: Mon, 19 Aug 2024 11:56:08 +0200 Subject: [PATCH] Cursor grab only shown if left click is panning --- packages/react/src/container/Pane/index.tsx | 4 +++- packages/svelte/src/lib/container/Pane/Pane.svelte | 2 +- packages/system/src/styles/init.css | 6 +++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/react/src/container/Pane/index.tsx b/packages/react/src/container/Pane/index.tsx index 9e35829c..48c23eba 100644 --- a/packages/react/src/container/Pane/index.tsx +++ b/packages/react/src/container/Pane/index.tsx @@ -253,9 +253,11 @@ export function Pane({ selectionStarted.current = false; }; + const draggable = panOnDrag === true || (Array.isArray(panOnDrag) && panOnDrag.includes(0)); + return (