QmlDesigner Fix for ColorButton dragging issue

Change-Id: I2e69a732f6dcdbbe8bf5f0516df76736971d96cd
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Aleksei German
2019-10-11 15:07:05 +02:00
parent 5535bc04ee
commit b84fecfb7d

View File

@@ -203,7 +203,7 @@ Item {
id: mapMouseArea id: mapMouseArea
anchors.fill: parent anchors.fill: parent
onPositionChanged: { onPositionChanged: {
if (pressed && mouse.button === Qt.LeftButton) { if (pressed && mouse.buttons === Qt.LeftButton) {
var xx = Math.max(0, Math.min(mouse.x, parent.width)) var xx = Math.max(0, Math.min(mouse.x, parent.width))
var yy = Math.max(0, Math.min(mouse.y, parent.height)) var yy = Math.max(0, Math.min(mouse.y, parent.height))