better panel drag behavior

This commit is contained in:
Marco Martin 2015-06-03 12:52:02 -07:00
parent 85fdc45d03
commit 7c1bc53c9d

View file

@ -132,9 +132,7 @@ PlasmaCore.ColorScope {
easing.type: Easing.InOutQuad easing.type: Easing.InOutQuad
} }
} }
Rectangle {
id: bah
}
Connections { Connections {
target: applet target: applet
onExpandedChanged: { onExpandedChanged: {
@ -179,6 +177,7 @@ PlasmaCore.ColorScope {
} }
Rectangle { Rectangle {
z: 1
parent: slidingPanel.visible ? panelContents : root parent: slidingPanel.visible ? panelContents : root
anchors { anchors {
left: parent.left left: parent.left
@ -188,6 +187,10 @@ PlasmaCore.ColorScope {
height: root.height height: root.height
color: PlasmaCore.ColorScope.backgroundColor color: PlasmaCore.ColorScope.backgroundColor
//used as is needed somebody to filter events
MouseArea {
anchors.fill: parent
}
Loader { Loader {
height: parent.height height: parent.height
width: item.width width: item.width
@ -259,6 +262,7 @@ PlasmaCore.ColorScope {
} }
} }
MouseArea { MouseArea {
z: 99
property int oldMouseY: 0 property int oldMouseY: 0
anchors.fill: parent anchors.fill: parent