<@U015TKX93PD> - I think the code in <https://cs.a...
# compose-desktop
k
@Igor Demin - I think the code in https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]kotlin/androidx/compose/foundation/Scrollbar.desktop.kt;l=222 (desktop scrollbar) needs something along these lines to support RTL mode (see code in thread)
Copy code
val orientationAwareReverseLayoutDirection = if (isVertical) reverseLayout
    else (reverseLayout xor (LocalLayoutDirection.current == LayoutDirection.Rtl))
    val sliderAdapter =
        remember(adapter, containerSize, minimalHeight, orientationAwareReverseLayoutDirection) {
            SliderAdapter(
                adapter,
                containerSize,
                minimalHeight,
                orientationAwareReverseLayoutDirection
            )
        }
Otherwise in RTL mode it doesn't change the location
i
reverseLayout
switches the scrollbar upside down, and doesn't reverse it from right to left.
k
Seems to be working in RTL mode for me. I'd be happy to "take" another solution, of course
i
Ahh, I understand. It is horizontal scrollbar, that doesn't work?
Thanks for the info, I will make a fix, when we will implement RTL
k
Correct, this is for horizontal scroll bars under RTL