Skip to content

Commit

Permalink
Fix: Cursor icon behavior in nested panels (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
catalinsh committed Aug 20, 2024
1 parent 62b245f commit d8e1f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-resizable-panels/src/PanelGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d8e1f82

Please sign in to comment.