@@ -45,24 +45,23 @@ Item {
45 onDropped: print("Dropped")
45 onDropped: print("Dropped")
48− Timer { // dismiss timer
49+ // dismiss timer
49 id: overlayTimer
51 id: overlayTimer
50 interval: 2000
52 interval: 2000
51 repeat: priv.dragging || root.resizeTarget.dragging
53 repeat: priv.dragging || root.resizeTarget.dragging
54− InverseMouseArea { // dismiss area
57+ // dismiss area
55 anchors.fill: overlay
59 anchors.fill: overlay
56 onClicked: overlayTimer.stop()
60 onClicked: overlayTimer.stop()
61− property real distanceX
62− property real distanceY
63− property bool dragging
66 MouseArea {
65 MouseArea {
67 anchors.fill: overlay
66 anchors.fill: overlay
68 visible: overlay.visible
67 visible: overlay.visible
@@ -88,12 +87,26 @@ Item {
92+ property real distanceX
93+ property real distanceY
94+ property bool dragging
98+ // the visual overlay
92 id: overlay
100 id: overlay
93 anchors.fill: parent
101 anchors.fill: parent
94− visible: overlayTimer.running && target && !target.maximized && !target.fullscreen
102+ opacity: overlayTimer.running && target && !target.maximized && !target.fullscreen ? 1 : 0
103+ visible: opacity == 1
95 enabled: visible
104 enabled: visible
106+ Behavior on opacity {
107+ OpacityAnimator { duration: UbuntuNumberAnimation.duration; easing: UbuntuNumberAnimation.easing }
98 source: "graphics/arrows-centre.png"
111 source: "graphics/arrows-centre.png"
99 width: units.gu(6)
112 width: units.gu(6)