We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ec3bab commit 7cfbb34Copy full SHA for 7cfbb34
src/disabled_blocks.ts
@@ -18,10 +18,10 @@ export function enableBlocksOnDrag(event: Blockly.Events.Abstract) {
18
// This listener only runs on Drag events that have a valid
19
// workspace and block id.
20
if (!isBlockDrag(event)) return;
21
+ if (!event.blockId) return;
22
const eventWorkspace = Blockly.common.getWorkspaceById(
23
event.workspaceId,
24
) as Blockly.WorkspaceSvg;
- if (!event.blockId) return;
25
const block = eventWorkspace.getBlockById(event.blockId);
26
if (!block) return;
27
0 commit comments