Skip to content

Commit

Permalink
fix: touch scroll should be worked when virtual (#1134)
Browse files Browse the repository at this point in the history
  • Loading branch information
linxianxi authored May 27, 2024
1 parent c220a13 commit a8485a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"classnames": "^2.2.5",
"rc-resize-observer": "^1.1.0",
"rc-util": "^5.37.0",
"rc-virtual-list": "^3.11.1"
"rc-virtual-list": "^3.14.2"
},
"devDependencies": {
"@rc-component/father-plugin": "^1.0.2",
Expand Down
2 changes: 1 addition & 1 deletion src/VirtualTable/BodyGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ const Grid = React.forwardRef<GridRef, GridProps>((props, ref) => {
>
{(item, index, itemProps) => {
const rowKey = getRowKey(item.record, index);
return <BodyLine data={item} rowKey={rowKey} index={index} {...itemProps} />;
return <BodyLine data={item} rowKey={rowKey} index={index} style={itemProps.style} />;
}}
</VirtualList>
);
Expand Down

0 comments on commit a8485a1

Please sign in to comment.