From b67ba993b4d1c89f3ff2211c8f7c6f216e377c67 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Fri, 6 Dec 2019 17:12:15 +0800 Subject: [PATCH] fix iOS slider state error --- Pod/Classes/Shader/DoricSliderNode.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Pod/Classes/Shader/DoricSliderNode.m b/Pod/Classes/Shader/DoricSliderNode.m index 23038297..c85573ad 100644 --- a/Pod/Classes/Shader/DoricSliderNode.m +++ b/Pod/Classes/Shader/DoricSliderNode.m @@ -204,10 +204,9 @@ - (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; } } + self.lastPosition = pageIndex; } - (void)slidePage:(NSDictionary *)params withPromise:(DoricPromise *)promise {