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

Commit 0057771f authored by Fabian Kozynski's avatar Fabian Kozynski Committed by Android (Google) Code Review
Browse files

Merge "Fix PagerDots RTL" into main

parents 474fa0ad 04b2662f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -96,7 +96,7 @@ fun PagerDots(
            .pagerDotsSemantics(pagerState, coroutineScope)
    ) {
        val rtl = layoutDirection == LayoutDirection.Rtl
        scale(if (rtl) -1f else 1f, 1f, Offset(0f, center.y)) {
        scale(if (rtl) -1f else 1f, 1f) {
            // The impacted index is the neighbor of the active index, in the direction dictated
            // from the page offset. The impacted dot will have its width modified
            val impactedIndex =