diff --git a/README.md b/README.md index 4fe7c66..718d369 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ repositories { } dependencies { - implementation("io.github.materiiapps.panels:panels:1.0.0") + implementation("io.github.materiiapps.panels:panels:1.0.1") } ``` diff --git a/build.gradle.kts b/build.gradle.kts index a88fb49..555c748 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ plugins { subprojects { group = "io.github.materiiapps.panels" - version = "1.0.0" + version = "1.0.1" repositories { repositories { diff --git a/panels/src/commonMain/kotlin/io/github/materiiapps/panels/SwipePanels.kt b/panels/src/commonMain/kotlin/io/github/materiiapps/panels/SwipePanels.kt index 8463fe8..a6dfbe6 100644 --- a/panels/src/commonMain/kotlin/io/github/materiiapps/panels/SwipePanels.kt +++ b/panels/src/commonMain/kotlin/io/github/materiiapps/panels/SwipePanels.kt @@ -212,8 +212,8 @@ public fun SwipePanels( } // Panels are not rendered if they are not visible - val startVisible by remember { derivedStateOf { centerOffset >= 0 } } - val endVisible by remember { derivedStateOf { centerOffset <= 0 } } + val startVisible by remember { derivedStateOf { centerOffset > 0 } } + val endVisible by remember { derivedStateOf { centerOffset < 0 } } // Start panel if (startVisible) {