forked from qt-creator/qt-creator
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:
committed by
Henning Gründl
parent
7b6ab79f3e
commit
985f6073da
@@ -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))
|
||||
|
Reference in New Issue
Block a user