1
0
Fork 0
mirror of synced 2024-08-15 10:01:34 +12:00

Fix selection indicator appearing while dragging

This commit is contained in:
Andrew Kingston 2022-10-24 13:24:19 +01:00
parent 7fc291ef8d
commit 6615027403

View file

@ -6,11 +6,6 @@
let componentId
$: zIndex = componentId === $builderStore.selectedComponentId ? 900 : 920
$: {
if ($dndIsDragging) {
componentId = null
}
}
const onMouseOver = e => {
// Ignore if dragging
@ -49,7 +44,7 @@
</script>
<IndicatorSet
{componentId}
componentId={$dndIsDragging ? null : componentId}
color="var(--spectrum-global-color-static-blue-200)"
transition
{zIndex}