From 8ade26148cc4a4263df8367c939236a9caa1d54a Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Wed, 12 Apr 2023 19:00:41 +0200 Subject: [PATCH] Fix offset location of connection ripple (#6973) Resolves issue #6972 --- core/insertion_marker_manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/insertion_marker_manager.ts b/core/insertion_marker_manager.ts index 7f53caa0d..fc25c87fd 100644 --- a/core/insertion_marker_manager.ts +++ b/core/insertion_marker_manager.ts @@ -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);