Skip to content

Commit

Permalink
fix: Dnd gap copy paste error
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Mar 7, 2025
1 parent 55113ca commit 5ef95cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/@react-stately/layout/src/GridLayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ export class GridLayout<T, O extends GridLayoutOptions = GridLayoutOptions> exte
continue;
}

let yDist = Math.abs(candidate.rect.y - x);
let maxYDist = Math.abs(candidate.rect.maxY - x);
let yDist = Math.abs(candidate.rect.y - y);
let maxYDist = Math.abs(candidate.rect.maxY - y);
let dist = Math.min(yDist, maxYDist);
if (dist < minDistance) {
minDistance = dist;
Expand Down
4 changes: 2 additions & 2 deletions packages/@react-stately/layout/src/ListLayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,8 +516,8 @@ export class ListLayout<T, O extends ListLayoutOptions = ListLayoutOptions> exte
continue;
}

let yDist = Math.abs(candidate.rect.y - x);
let maxYDist = Math.abs(candidate.rect.maxY - x);
let yDist = Math.abs(candidate.rect.y - y);
let maxYDist = Math.abs(candidate.rect.maxY - y);
let dist = Math.min(yDist, maxYDist);
if (dist < minDistance) {
minDistance = dist;
Expand Down
4 changes: 2 additions & 2 deletions packages/@react-stately/layout/src/TableLayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,8 @@ export class TableLayout<T, O extends TableLayoutProps = TableLayoutProps> exten
continue;
}

let yDist = Math.abs(candidate.rect.y - x);
let maxYDist = Math.abs(candidate.rect.maxY - x);
let yDist = Math.abs(candidate.rect.y - y);
let maxYDist = Math.abs(candidate.rect.maxY - y);
let dist = Math.min(yDist, maxYDist);
if (dist < minDistance) {
minDistance = dist;
Expand Down

0 comments on commit 5ef95cc

Please sign in to comment.