@@ -19,7 +19,7 @@ import type {FlyoutButton} from './flyout_button.js';
1919import type { Options } from './options.js' ;
2020import * as registry from './registry.js' ;
2121import { Scrollbar } from './scrollbar.js' ;
22- import { Coordinate } from './utils/coordinate.js' ;
22+ import type { Coordinate } from './utils/coordinate.js' ;
2323import { Rect } from './utils/rect.js' ;
2424import * as toolbox from './utils/toolbox.js' ;
2525import * as WidgetDiv from './widgetdiv.js' ;
@@ -246,8 +246,7 @@ export class VerticalFlyout extends Flyout {
246246 const moveX = block ! . outputConnection
247247 ? cursorX - this . tabWidth_
248248 : cursorX ;
249- // No 'reason' provided since events are disabled.
250- block ! . moveTo ( new Coordinate ( moveX , cursorY ) ) ;
249+ block ! . moveBy ( moveX , cursorY ) ;
251250
252251 const rect = this . createRect_ (
253252 block ! ,
@@ -358,8 +357,7 @@ export class VerticalFlyout extends Flyout {
358357 if ( ! block . outputConnection ) {
359358 newX -= this . tabWidth_ ;
360359 }
361- // No 'reason' provided since events are disabled.
362- block . moveTo ( new Coordinate ( newX - oldX , 0 ) ) ;
360+ block . moveBy ( newX - oldX , 0 ) ;
363361 }
364362 if ( this . rectMap_ . has ( block ) ) {
365363 this . moveRectToBlock_ ( this . rectMap_ . get ( block ) ! , block ) ;
0 commit comments