QmlDesigner: Fix ColorEditor dragging

Fix ColorEditor dragging by preventing that the mouse event gets stolen
from the Flickable underneath.

Task-number: QDS-2955
Change-Id: I3950d8fce3d3b59980a01f1c96bdb55aab56f263
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Henning Gruendl
2020-10-28 09:59:01 +01:00
committed by Henning Gründl
parent 7b6ab79f3e
commit 985f6073da

View File

@@ -201,6 +201,7 @@ Item {
MouseArea {
id: mapMouseArea
anchors.fill: parent
preventStealing: true
onPositionChanged: {
if (pressed && mouse.buttons === Qt.LeftButton) {
var xx = Math.max(0, Math.min(mouse.x, parent.width))