mirror of
https://github.com/google/blockly.git
synced 2026-01-08 09:30:06 +01:00
@@ -186,11 +186,11 @@ export class InsertionMarkerManager {
|
||||
eventUtils.enable();
|
||||
if (this.topBlock.rendered) {
|
||||
const inferiorConnection = local.isSuperior() ? closest : local;
|
||||
blockAnimations.connectionUiEffect(inferiorConnection.getSourceBlock());
|
||||
const rootBlock = this.topBlock.getRootBlock();
|
||||
|
||||
// bringToFront is incredibly expensive. Delay by at least a frame.
|
||||
requestAnimationFrame(() => {
|
||||
blockAnimations.connectionUiEffect(inferiorConnection.getSourceBlock());
|
||||
setTimeout(() => {
|
||||
rootBlock.bringToFront();
|
||||
}, 0);
|
||||
|
||||
Reference in New Issue
Block a user