Skip to content

Commit fc0ea7c

Browse files
Show trash icon when dragging a block and hovering over another icon (sugarlabs#4326)
1 parent dfbbe4e commit fc0ea7c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/block.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3111,7 +3111,9 @@ class Block {
31113111
}
31123112

31133113
// Always hide the trash when there is no block selected.
3114-
this.activity.trashcan.hide();
3114+
if (!moved) {
3115+
this.activity.trashcan.hide();
3116+
}
31153117

31163118
if (this.blocks.longPressTimeout != null) {
31173119
clearTimeout(this.blocks.longPressTimeout);

0 commit comments

Comments
 (0)