Fix components being selected when starting dragging

This commit is contained in:
Andrew Kingston 2022-10-21 16:52:46 +01:00
parent 4ff441e83f
commit 575636ed3d
2 changed files with 1 additions and 1 deletions

View File

@ -446,7 +446,7 @@
const scrollIntoView = () => { const scrollIntoView = () => {
// Don't scroll into view if we selected this component because we were // Don't scroll into view if we selected this component because we were
// starting dragging on it // starting dragging on it
if (get(builderStore).dragging) { if (get(dndIsDragging)) {
return return
} }
const node = document.getElementsByClassName(id)?.[0]?.children[0] const node = document.getElementsByClassName(id)?.[0]?.children[0]

View File