From c008bd07e81cae4d4458a618f94e84ac694e6400 Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Wed, 8 Sep 2021 12:10:44 -0700 Subject: [PATCH] Note behavior of centerOnBlock when block is part of a stack in the JSDoc (#5442) --- core/workspace_svg.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/workspace_svg.js b/core/workspace_svg.js index b513ed674..d71692205 100644 --- a/core/workspace_svg.js +++ b/core/workspace_svg.js @@ -2168,7 +2168,8 @@ Blockly.WorkspaceSvg.prototype.scrollCenter = function() { }; /** - * Scroll the workspace to center on the given block. + * Scroll the workspace to center on the given block. If the block has other + * blocks stacked below it, the workspace will be centered on the stack. * @param {?string} id ID of block center on. * @public */