@@ -40,6 +40,7 @@ StyledItem {
4040 property bool fullscreen: false
4141 property int maxHeight
4242 property int margins: units.gu(1)
43+ readonly property bool draggable: type !== Notification.SnapDecision || state === "contracted"
4344
4445 readonly property real defaultOpacity: 1.0
4546 property bool hasMouse
@@ -99,6 +100,7 @@ StyledItem {
99100 }
100101
101102 Behavior on x {
103+ enabled: draggable
102104 UbuntuNumberAnimation { easing.type: Easing.OutBounce }
103105 }
104106
@@ -151,7 +153,7 @@ StyledItem {
151153 }
152154
153155 onXChanged: {
154− if (Math.abs(notification.x) > 0.75 * notification.width) {
156+ if (draggable && Math.abs(notification.x) > 0.75 * notification.width) {
155157 notification.notification.close()
156158 }
157159 }
@@ -192,7 +194,7 @@ StyledItem {
192194 anchors.fill: parent
193195 objectName: "interactiveArea"
194196
195− drag.target: notification
197+ drag.target: draggable ? notification : undefined
196198 drag.axis: Drag.XAxis
197199 drag.minimumX: -notification.width
198200 drag.maximumX: notification.width
@@ -219,7 +221,7 @@ StyledItem {
219221 width: units.gu(2)
220222 height: width
221223 radius: width / 2
222− visible: hasMouse && (containsMouse || interactiveArea.containsMouse)
224+ visible: hasMouse && draggable && (containsMouse || interactiveArea.containsMouse)
223225 iconName: "close"
224226 outline: false
225227 color: theme.palette.normal.negative