fix iOS slider state error
This commit is contained in:
parent
187dd9e0c3
commit
b67ba993b4
@ -204,11 +204,10 @@ - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView {
|
||||
if (self.onPageSelectedFuncId && self.onPageSelectedFuncId.length > 0) {
|
||||
if (pageIndex != self.lastPosition) {
|
||||
[self callJSResponse:self.onPageSelectedFuncId, @(pageIndex), nil];
|
||||
} else {
|
||||
}
|
||||
}
|
||||
self.lastPosition = pageIndex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- (void)slidePage:(NSDictionary *)params withPromise:(DoricPromise *)promise {
|
||||
NSUInteger pageIndex = [params[@"page"] unsignedIntegerValue];
|
||||
|
Reference in New Issue
Block a user