Commit 36070da9 authored by eekkelund's avatar eekkelund

[AppLauncher] Add max&min drag areas

parent 46805191
...@@ -49,6 +49,10 @@ MouseArea { ...@@ -49,6 +49,10 @@ MouseArea {
transformOrigin: Item.Center transformOrigin: Item.Center
onXChanged: moved() onXChanged: moved()
onYChanged: moved() onYChanged: moved()
drag.minimumX: parentItem.contentItem.x - width/2
drag.maximumX: parentItem.contentItem.width + width/2
drag.minimumY: parentItem.contentItem.y -height/2
drag.maximumY: parentItem.contentItem.height +height/2
onClicked: { onClicked: {
// TODO: disallow if close mode enabled // TODO: disallow if close mode enabled
......
Markdown is supported
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