Skip to content

Commit

Permalink
Show trash icon when dragging a block and hovering over another icon (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
subhas-pramanik-09 authored Jan 31, 2025
1 parent dfbbe4e commit fc0ea7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -3111,7 +3111,9 @@ class Block {
}

// Always hide the trash when there is no block selected.
this.activity.trashcan.hide();
if (!moved) {
this.activity.trashcan.hide();
}

if (this.blocks.longPressTimeout != null) {
clearTimeout(this.blocks.longPressTimeout);
Expand Down

0 comments on commit fc0ea7c

Please sign in to comment.