File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1414 */
1515
1616import { BlockSvg } from '../block_svg.js' ;
17+ import { CommentBarButton } from '../comments/comment_bar_button.js' ;
1718import { RenderedWorkspaceComment } from '../comments/rendered_workspace_comment.js' ;
1819import { Field } from '../field.js' ;
1920import { getFocusManager } from '../focus_manager.js' ;
@@ -403,6 +404,9 @@ export class LineCursor extends Marker {
403404 ) ;
404405 } else if ( newNode instanceof RenderedWorkspaceComment ) {
405406 newNode . workspace . scrollBoundsIntoView ( newNode . getBoundingRectangle ( ) ) ;
407+ } else if ( newNode instanceof CommentBarButton ) {
408+ const comment = newNode . getParentComment ( ) ;
409+ comment . workspace . scrollBoundsIntoView ( comment . getBoundingRectangle ( ) ) ;
406410 }
407411 }
408412
You can’t perform that action at this time.
0 commit comments