Fix components being selected when starting dragging

This commit is contained in:
Andrew Kingston 2022-10-21 16:52:46 +01:00
parent 358e5996f5
commit 67b6821b37
2 changed files with 1 additions and 1 deletions

View File

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

View File