Last active
September 24, 2022 11:46
-
-
Save mazzouzi/48f3ef4a83cf94fba740337eb3b025eb to your computer and use it in GitHub Desktop.
t calculation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val collapseRange: Float = (headerHeightPx - toolbarHeightPx) | |
val collapseFraction: Float = (scroll.value / collapseRange).coerceIn(0f, 1f) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment