Fix selection indicator appearing while dragging

This commit is contained in:
Andrew Kingston 2022-10-24 13:24:19 +01:00
parent d358beb3be
commit be10c64984
1 changed files with 1 additions and 6 deletions

View File

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