Skip to content

Commit 6e4c21e

Browse files
committed
fix: make sure scrollLeft is always integer
1 parent 7f85ac6 commit 6e4c21e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## NEXT VERSION
44

55
- chore: use unicode for icon character
6+
- fix: make sure `scrollLeft` is always integer
67

78
## v0.2.0
89

src/BaseTable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ class BaseTable extends React.PureComponent {
397397
if (fixed) {
398398
const columnsWidth = this.columnManager.getColumnsWidth();
399399
// make sure `scrollLeft` is always integer to fix a sync bug when scrolling to end horizontally
400-
tableWidth = Math.max(columnsWidth, Math.round(tableWidth));
400+
tableWidth = Math.max(Math.round(columnsWidth), tableWidth);
401401
}
402402
return (
403403
<GridTable

0 commit comments

Comments
 (0)