on xenial help sign in
handle cancelled events in DragArea to avoid getting stuck in dragging state
commit58519852865816a32dfb945f995f95a5090f257d authorMichael Zanetti <michael.zanetti@canonical.com> dateFri 11 Jul 2014, 11:22 (12 years ago) parent37d688d
1 file changed+4
qml/Components/DraggingArea.qml+4
qml/Components/DraggingArea.qml+4
@@ -117,4 +117,8 @@ MouseArea {
117117 dragging = false
118118 __pressedPosition = Qt.point(mouse.x, mouse.y)
119119 }
120+
121+ onCanceled: {
122+ dragging = false
123+ }
120124}