Skip to content

Commit

Permalink
1.14.1/overscroll (#211)
Browse files Browse the repository at this point in the history
* feat: overscroll effect.

* fix: remove unused import directive.

* fix: overscroll effect.

* fix: remove unused import directive.
  • Loading branch information
oxyroid authored Nov 17, 2024
1 parent d3da263 commit 5ad495c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions androidApp/src/main/java/com/m3u/androidApp/ui/Scaffold.kt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import com.m3u.material.model.LocalHazeState
import com.m3u.material.model.LocalSpacing
import com.m3u.material.overscroll.OverScroll
import com.m3u.material.overscroll.overScrollAlpha
import com.m3u.material.overscroll.overScrollHeader
import com.m3u.material.overscroll.overScrollParallaxVertical
import com.m3u.ui.Destination
import com.m3u.ui.FontFamilies
import com.m3u.ui.helper.Fob
Expand Down Expand Up @@ -214,9 +214,7 @@ internal fun MainContent(
modifier = Modifier
.hazeChild(hazeState, style = HazeStyle(blurRadius = 6.dp))
.fillMaxWidth()
.overScrollHeader(
headerHeight = with(density) { 82.dp.toPx() }
)
.overScrollParallaxVertical(maxParallaxOffset = -40f)
.overScrollAlpha(
finalAlpha = 0.35f
)
Expand Down

0 comments on commit 5ad495c

Please sign in to comment.