forked from qt-creator/qt-creator
QmlDesigner Fix for ColorButton dragging issue
Change-Id: I2e69a732f6dcdbbe8bf5f0516df76736971d96cd Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -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))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user