Skip to content

Commit ec386be

Browse files
authored
Merge pull request scratchfoundation#5078 from LLK/fix-duplicate-run
Fix duplicate running blocks by removing pointer-events: none
2 parents 0adf321 + d4d6ded commit ec386be

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/blocks/blocks.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,13 @@
7979
/*
8080
Fix an issue where the drag surface was preventing hover events for sharing blocks.
8181
This does not prevent user interaction on the blocks themselves.
82+
This was previously pointer-events: none, but that allowed clicks to fall through
83+
causing incorrect stack clicks on duplicate, and prevented the correct
84+
cursor from showing when dragging over the toolbox to delete.
8285
*/
83-
pointer-events: none;
86+
width: 1px;
87+
height: 1px;
88+
overflow: visible;
8489
z-index: $z-index-drag-layer; /* make blocks match gui drag layer */
8590
}
8691

0 commit comments

Comments
 (0)