From aa368d2e4b3b54124e4a991325d84985fd0fc3f3 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Wed, 22 Apr 2020 13:08:47 +0800 Subject: [PATCH] iOS:update js property --- doric-iOS/Pod/Classes/Shader/DoricListNode.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doric-iOS/Pod/Classes/Shader/DoricListNode.m b/doric-iOS/Pod/Classes/Shader/DoricListNode.m index 99e6e961..8b697368 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricListNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricListNode.m @@ -314,7 +314,7 @@ - (void)removeDidScrollBlock:(__nonnull DoricDidScrollBlock)didScrollListener { - (void)scrollToItem:(NSDictionary *)params { BOOL animated = [params[@"animated"] boolValue]; - NSUInteger scrolledPosition = [params[@"pos"] unsignedIntegerValue]; + NSUInteger scrolledPosition = [params[@"index"] unsignedIntegerValue]; [self.view scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:scrolledPosition inSection:0] atScrollPosition:UITableViewScrollPositionNone animated:animated]; }