From fc0ea7ce28e16c6511e801c152eab21bfbafdb29 Mon Sep 17 00:00:00 2001 From: Subhas Pramanik Date: Fri, 31 Jan 2025 17:59:11 +0530 Subject: [PATCH] Show trash icon when dragging a block and hovering over another icon (#4326) --- js/block.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/block.js b/js/block.js index f75cf8b515..a05b77fbf0 100644 --- a/js/block.js +++ b/js/block.js @@ -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);