From 8e0344a9791e892a63a7c170430858be81ea5c62 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 12 Nov 2020 14:53:37 +0100 Subject: [PATCH] fix mobile scrollbar in RTL mode --- src/declarativeimports/plasmacomponents3/ScrollBar.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/declarativeimports/plasmacomponents3/ScrollBar.qml b/src/declarativeimports/plasmacomponents3/ScrollBar.qml index d774d9911..136d45255 100644 --- a/src/declarativeimports/plasmacomponents3/ScrollBar.qml +++ b/src/declarativeimports/plasmacomponents3/ScrollBar.qml @@ -75,8 +75,11 @@ T.ScrollBar { property real handleState: 0 visible: !controlRoot.interactive + x: Math.round(controlRoot.orientation == Qt.Vertical - ? (parent.width - width) - (parent.width/2 - width/2) * handleState + ? (Qt.application.layoutDirection === Qt.LeftToRight + ? (parent.width - width) - (parent.width/2 - width/2) * handleState + : (parent.width/2 - width/2) * handleState) : 0) y: Math.round(controlRoot.orientation == Qt.Horizontal