Commit 716dce08 authored by David Redondo's avatar David Redondo 🏎
Browse files

Improve dragging in rtl mode

Because the visuals didn't match with what was happening.
parent 8ea0d383
......@@ -174,21 +174,21 @@ FocusScope {
}
MouseArea {
id: dragHandle
property real mouseDownX
property bool dragging: false
anchors {
right: parent.right
top: parent.top
bottom: parent.bottom
left: LayoutMirroring.enabled && !dragging ? parent.left : undefined
right: !LayoutMirroring.enabled && !dragging ? parent.right : undefined
}
drag.target: dragHandle
drag.axis: Drag.XAxis
cursorShape: enabled ? Qt.SplitHCursor : undefined
width: Kirigami.Units.smallSpacing * 2
property real mouseDownX
property bool dragging: false
onPressed: {
dragging = true
mouseDownX = x
anchors.right = undefined
}
onXChanged: {
if (!dragging) {
......@@ -200,7 +200,6 @@ FocusScope {
}
onReleased: {
dragging = false
anchors.right = parent.right
}
}
Component.onCompleted: {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment