Skip to content

Commit 44bc613

Browse files
fix: reference to getCurrentBlock
1 parent a25cebe commit 44bc613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/actions/mover.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ export class Mover {
340340
* the workspace's viewport.
341341
*/
342342
private scrollCurrentBlockIntoView(workspace: WorkspaceSvg, padding = 10) {
343-
const blockToView = this.getCurrentBlock(workspace);
343+
const blockToView = this.moves.get(workspace)?.block;
344344
if (blockToView) {
345345
workspace.scrollBoundsIntoView(
346346
blockToView.getBoundingRectangleWithoutChildren(),

0 commit comments

Comments
 (0)