Skip to content

Commit 07d982b

Browse files
committed
fix: clamp tabular size to content bounds and fix edge drag selection
1 parent a1a20fd commit 07d982b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/core/src/lib/virtualization.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ export const getAreaInTabular = (tabularElement: HTMLDivElement): AreaType => {
181181
const cols = Array.from(tabularElement.querySelectorAll('.gs-th-top')) as HTMLTableHeaderCellElement[];
182182

183183
const top = findVisibleElement(rows, (rect) => rect.top, topPosition, 'y');
184-
const bottom = findVisibleElement(rows, (rect) => rect.bottom, bottomPosition, 'y');
184+
const bottom = findVisibleElement(rows, (rect) => rect.bottom, bottomPosition + 1, 'y');
185185
const left = findVisibleElement(cols, (rect) => rect.left, leftPosition, 'x');
186-
const right = findVisibleElement(cols, (rect) => rect.right, rightPosition, 'x');
186+
const right = findVisibleElement(cols, (rect) => rect.right, rightPosition + 1, 'x');
187187

188188
return { top, left, bottom, right };
189189
};

0 commit comments

Comments
 (0)