Skip to content

Commit

Permalink
fix(SwipePanels): wrong side panel rendering conditional
Browse files Browse the repository at this point in the history
Panels that aren't visible won't render any longer
  • Loading branch information
rushiiMachine committed Apr 10, 2023
1 parent 33fd406 commit 7681a84
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repositories {
}

dependencies {
implementation("io.github.materiiapps.panels:panels:1.0.0")
implementation("io.github.materiiapps.panels:panels:1.0.1")
}
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {

subprojects {
group = "io.github.materiiapps.panels"
version = "1.0.0"
version = "1.0.1"

repositories {
repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7681a84

Please sign in to comment.