Skip to content

Commit a8485a1

Browse files
authored
fix: touch scroll should be worked when virtual (#1134)
1 parent c220a13 commit a8485a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"classnames": "^2.2.5",
5959
"rc-resize-observer": "^1.1.0",
6060
"rc-util": "^5.37.0",
61-
"rc-virtual-list": "^3.11.1"
61+
"rc-virtual-list": "^3.14.2"
6262
},
6363
"devDependencies": {
6464
"@rc-component/father-plugin": "^1.0.2",

src/VirtualTable/BodyGrid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ const Grid = React.forwardRef<GridRef, GridProps>((props, ref) => {
244244
>
245245
{(item, index, itemProps) => {
246246
const rowKey = getRowKey(item.record, index);
247-
return <BodyLine data={item} rowKey={rowKey} index={index} {...itemProps} />;
247+
return <BodyLine data={item} rowKey={rowKey} index={index} style={itemProps.style} />;
248248
}}
249249
</VirtualList>
250250
);

0 commit comments

Comments
 (0)