From 072c1162b29b7930b1b9871a932e1c0b5b74b9e6 Mon Sep 17 00:00:00 2001 From: Catalin Andrei Cacuci <52856673+catalinsh@users.noreply.github.com> Date: Wed, 21 Aug 2024 15:11:40 +0200 Subject: [PATCH] Fix: Cursor icon behavior in nested panels (#390) --- packages/react-resizable-panels/src/PanelGroup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-resizable-panels/src/PanelGroup.ts b/packages/react-resizable-panels/src/PanelGroup.ts index 04c3a944..34625f51 100644 --- a/packages/react-resizable-panels/src/PanelGroup.ts +++ b/packages/react-resizable-panels/src/PanelGroup.ts @@ -676,7 +676,7 @@ function PanelGroupWithForwardedRef({ if (prevDeltaRef.current != delta) { prevDeltaRef.current = delta; - if (!layoutChanged) { + if (!layoutChanged && delta !== 0) { // If the pointer has moved too far to resize the panel any further, note this so we can update the cursor. // This mimics VS Code behavior. if (isHorizontal) {