From 9888ea91dad6ce0adcc0f543870686679e280abf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=96=D0=B8=D1=80=D0=BA=D0=B5=D0=B2=D0=B8=D1=87?= Date: Tue, 23 Jul 2024 20:37:02 +0300 Subject: [PATCH] fixed zero frame is not rendered (#12) --- .../alexzhirkevich/compottie/internal/layers/BaseLayer.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compottie/src/commonMain/kotlin/io/github/alexzhirkevich/compottie/internal/layers/BaseLayer.kt b/compottie/src/commonMain/kotlin/io/github/alexzhirkevich/compottie/internal/layers/BaseLayer.kt index f581b3f2..c77f68b6 100644 --- a/compottie/src/commonMain/kotlin/io/github/alexzhirkevich/compottie/internal/layers/BaseLayer.kt +++ b/compottie/src/commonMain/kotlin/io/github/alexzhirkevich/compottie/internal/layers/BaseLayer.kt @@ -126,8 +126,7 @@ internal abstract class BaseLayer : Layer { } override fun isActive(state: AnimationState): Boolean { - return !isHidden(state) - && state.frame in (inPoint ?: Float.MIN_VALUE)..(outPoint ?: Float.MAX_VALUE) + return !isHidden(state) && state.frame in (inPoint ?: 0f)..(outPoint ?: Float.MAX_VALUE) }