Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6948006 authored by András Kurucz's avatar András Kurucz Committed by Android (Google) Code Review
Browse files

Merge "[flexiglass] Fix ScrollState#isScrolledToTop on split, and dual shade" into main

parents c439009b 52ff9675
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -361,8 +361,9 @@ fun ContentScope.NotificationScrollingStack(
    val shadeScrollState by remember {
        derivedStateOf {
            ShadeScrollState(
                // we are not scrolled to the top unless the scrim is at its maximum offset.
                isScrolledToTop = scrimOffset.value >= 0f,
                // we are not scrolled to the top unless the scroll position is zero,
                // and the scrim is at its maximum offset
                isScrolledToTop = scrimOffset.value >= 0f && scrollState.value == 0,
                scrollPosition = scrollState.value,
                maxScrollPosition = scrollState.maxValue,
            )