Migrate Removal buttons to mousedown

This commit is contained in:
Neshura 2024-05-23 17:30:25 +02:00
parent 6c39b77949
commit b2e3a74dbe
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@
{#each inventories as inventory, index}
<p class="flex gap-2 justify-between">
- {i18n.localize(inventory.details.name)} {i18n.localize("volume")}: {applyUnits(i18n, inventory.getVolume(grid, multiplier), "l")}
<Button variant="destructive" onclick={() => onRemoveInventory(index)}>X</Button>
<Button variant="destructive" onmousedown={() => onRemoveInventory(index)}>X</Button>
</p>
{/each}
{:else}

View file

@ -22,7 +22,7 @@
{#each thrusters as thruster, index}
<p class="gap-2 flex justify-between">
- {i18n.localize(thruster.details.size)} {i18n.localize(thruster.details.type.details.name)}: {applyUnits(i18n, thruster.getThrust(grid, atmosphere), "N")}
<Button variant="destructive" onclick={() => onRemoveThruster(index)}>X</Button>
<Button variant="destructive" onmousedown={() => onRemoveThruster(index)}>X</Button>
</p>
{/each}
{:else}