From c367b931210ea735f2b4f9e8c6315e645f0855a2 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Fri, 15 Jul 2022 19:21:33 +0800 Subject: [PATCH] feat:slider add reset action --- .../src/main/java/pub/doric/shader/slider/SliderNode.java | 3 +++ doric-iOS/Pod/Classes/Shader/DoricSliderNode.m | 3 +++ 2 files changed, 6 insertions(+) diff --git a/doric-android/doric/src/main/java/pub/doric/shader/slider/SliderNode.java b/doric-android/doric/src/main/java/pub/doric/shader/slider/SliderNode.java index 553b0291..75571cf4 100644 --- a/doric-android/doric/src/main/java/pub/doric/shader/slider/SliderNode.java +++ b/doric-android/doric/src/main/java/pub/doric/shader/slider/SliderNode.java @@ -301,6 +301,9 @@ public class SliderNode extends SuperNode { scrollable = true; onPageSlidedFuncId = null; renderPageFuncId = null; + slideStyle = null; + minScale = .618f; + maxScale = 1.f; } private static class DoricLinearSmoothScroller extends LinearSmoothScroller { diff --git a/doric-iOS/Pod/Classes/Shader/DoricSliderNode.m b/doric-iOS/Pod/Classes/Shader/DoricSliderNode.m index 414c0f9d..c7086ef4 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricSliderNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricSliderNode.m @@ -349,6 +349,9 @@ - (void)reset { self.onPageSelectedFuncId = nil; self.propRenderPageFuncId = nil; self.renderPageFuncId = nil; + self.slideStyle = nil; + self.minScale = .618f; + self.maxScale = 1.f; } - (void)subNodeContentChanged:(DoricViewNode *)subNode {