Migrate Removal buttons to mousedown
This commit is contained in:
parent
6c39b77949
commit
b2e3a74dbe
2 changed files with 2 additions and 2 deletions
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue