From f45cd8160e4695c9cf6a948582d1a0ea6c7f15b4 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Fri, 21 Apr 2023 12:49:02 -0700 Subject: [PATCH] fix: insertion markers firing move events (#7005) (cherry picked from commit 35276e9468899659cdd76a41bae0b8837b3573b7) --- core/insertion_marker_manager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/insertion_marker_manager.ts b/core/insertion_marker_manager.ts index 7f53caa0d..30e241de8 100644 --- a/core/insertion_marker_manager.ts +++ b/core/insertion_marker_manager.ts @@ -179,11 +179,11 @@ export class InsertionMarkerManager { */ applyConnections() { if (!this.activeCandidate) return; - const {local, closest} = this.activeCandidate; - local.connect(closest); eventUtils.disable(); this.hidePreview(); eventUtils.enable(); + const {local, closest} = this.activeCandidate; + local.connect(closest); if (this.topBlock.rendered) { const inferiorConnection = local.isSuperior() ? closest : local; blockAnimations.connectionUiEffect(inferiorConnection.getSourceBlock());