feat:Scroller add contentOffset property
This commit is contained in:
@@ -107,6 +107,10 @@ - (void)blend:(NSDictionary *)props {
|
||||
self.view.contentView = it.view;
|
||||
}];
|
||||
}
|
||||
if (props[@"contentOffset"]) {
|
||||
NSDictionary *prop = props[@"contentOffset"];
|
||||
self.view.contentOffset = CGPointMake([prop[@"x"] floatValue], [prop[@"y"] floatValue]);
|
||||
}
|
||||
}
|
||||
|
||||
- (void)blendView:(DoricScrollView *)view forPropName:(NSString *)name propValue:(id)prop {
|
||||
|
Reference in New Issue
Block a user