Skip to content

Commit

Permalink
feat: should add container offset when calculate visible
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuever committed May 9, 2023
1 parent 845c2c8 commit 70f1c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/data-model/src/ListDimensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ class ListDimensions<ItemT extends {} = {}> extends BaseDimensions {
? this._configTuple.resolveItemMetaState(
itemMeta,
this._scrollMetrics,
() => indexToOffsetMap[targetIndex]
() => indexToOffsetMap[targetIndex] + this.getContainerOffset()
)
: itemMeta.getState();
itemMeta.setItemMetaState(itemMetaState);
Expand Down

0 comments on commit 70f1c02

Please sign in to comment.