mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
dnd: If needed, destroy _dragActor in _cancelDrag
In the case where the original actor is destroyed, we don't show a snap back animation, so we need to destroy drag actor as we would do in _onAnimationComplete. https://bugzilla.gnome.org/show_bug.cgi?id=640781
This commit is contained in:
parent
30346884fe
commit
d38f41a459
1 changed files with 3 additions and 0 deletions
|
|
@ -507,6 +507,9 @@ _Draggable.prototype = {
|
|||
if (!this._buttonDown)
|
||||
this._dragComplete();
|
||||
this.emit('drag-end', eventTime, false);
|
||||
if (!this._dragOrigParent)
|
||||
this._dragActor.destroy();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue