dnd: Don't mix callback argument and object field usage
This will be important for the next commit, since _dragComplete() changes the value of this._dragActor and we need to keep a valid reference to it. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/744
This commit is contained in:
parent
5880758709
commit
b65b4e3cae
@ -704,8 +704,8 @@ var _Draggable = class _Draggable {
|
||||
|
||||
_onAnimationComplete(dragActor, eventTime) {
|
||||
if (this._dragOrigParent) {
|
||||
Main.uiGroup.remove_child(this._dragActor);
|
||||
this._dragOrigParent.add_actor(this._dragActor);
|
||||
Main.uiGroup.remove_child(dragActor);
|
||||
this._dragOrigParent.add_actor(dragActor);
|
||||
dragActor.set_scale(this._dragOrigScale, this._dragOrigScale);
|
||||
dragActor.set_position(this._dragOrigX, this._dragOrigY);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user