Skip to content

Commit

Permalink
Implement improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtaala committed Jan 26, 2024
1 parent c5d4faf commit 6d97ef6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions grab.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ export class MoveGrab {

if (dndTarget) {
let space = dndTarget.space;
space.selection.show();
space.showSelection();

if (Scratch.isScratchWindow(metaWindow))
Scratch.unmakeScratch(metaWindow);
Expand Down Expand Up @@ -414,6 +414,7 @@ export class MoveGrab {
metaWindow.move_frame(true, clone.x, clone.y);
Scratch.makeScratch(metaWindow);
this.initialSpace.moveDone();
this.initialSpace.showSelection();

actor.set_scale(clone.scale_x, clone.scale_y);
actor.opacity = clone.opacity;
Expand Down Expand Up @@ -542,15 +543,15 @@ export class MoveGrab {
}

zone.space.cloneContainer.add_child(zone.actor);
zone.space.selection.hide();
zone.space.hideSelection();
zone.actor.show();
raise();
Easer.addEase(zone.actor, params);
}

deactivateDndTarget(zone) {
if (zone) {
zone.space.selection.show();
zone.space.showSelection();
Easer.addEase(zone.actor, {
time: Settings.prefs.animation_time,
[zone.originProp]: zone.center,
Expand Down

0 comments on commit 6d97ef6

Please sign in to comment.