diff --git a/frontend/src/sections/Palette.svelte b/frontend/src/sections/Palette.svelte index 8d44a8e..7d179a5 100644 --- a/frontend/src/sections/Palette.svelte +++ b/frontend/src/sections/Palette.svelte @@ -10,9 +10,9 @@ const target = event.target as HTMLSpanElement const index = parseInt(target.getAttribute('x-index') || '0') if (event.shiftKey) { - secondaryColorIndex = index - } else { primaryColorIndex = index + } else { + secondaryColorIndex = index } } @@ -20,13 +20,20 @@
{#if file} {#each file.canvas.palette as palette, paletteIndex} - + + + + {/each} {/if}
\ No newline at end of file