dnd: Add a drag-cancelled signal

This lets us start the workspace zoom out animation right when the
snapback starts, rather than waiting for the snapback to finish.

https://bugzilla.gnome.org/show_bug.cgi?id=643786
This commit is contained in:
Alexander Larsson
2011-03-08 14:44:47 +01:00
parent 0207f1f29b
commit a80e88e33e
3 changed files with 14 additions and 0 deletions

View File

@ -498,6 +498,7 @@ _Draggable.prototype = {
},
_cancelDrag: function(eventTime) {
this.emit('drag-cancelled', eventTime);
this._dragInProgress = false;
let [snapBackX, snapBackY, snapBackScale] = this._getRestoreLocation();