Fix components being selected when starting dragging
This commit is contained in:
parent
358e5996f5
commit
67b6821b37
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue