fix: insertion markers firing move events (#7005)

(cherry picked from commit 35276e9468)
This commit is contained in:
Beka Westberg
2023-04-21 12:49:02 -07:00
parent 961a83f420
commit f45cd8160e

View File

@@ -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());