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 (self.onPageSelectedFuncId && self.onPageSelectedFuncId.length > 0) {
|
||||||
if (pageIndex != self.lastPosition) {
|
if (pageIndex != self.lastPosition) {
|
||||||
[self callJSResponse:self.onPageSelectedFuncId, @(pageIndex), nil];
|
[self callJSResponse:self.onPageSelectedFuncId, @(pageIndex), nil];
|
||||||
} else {
|
}
|
||||||
|
}
|
||||||
self.lastPosition = pageIndex;
|
self.lastPosition = pageIndex;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)slidePage:(NSDictionary *)params withPromise:(DoricPromise *)promise {
|
- (void)slidePage:(NSDictionary *)params withPromise:(DoricPromise *)promise {
|
||||||
NSUInteger pageIndex = [params[@"page"] unsignedIntegerValue];
|
NSUInteger pageIndex = [params[@"page"] unsignedIntegerValue];
|
||||||
|
Reference in New Issue
Block a user