Skip to content

Commit d4d6ded

Browse files
committed
Fix duplicate running blocks by removing pointer-events: none;
1 parent 043cbec commit d4d6ded

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)