diff --git a/tgui/packages/tgui/interfaces/LootPanel/LootBox.tsx b/tgui/packages/tgui/interfaces/LootPanel/LootBox.tsx index d064c2529d..7cc5f76b9d 100644 --- a/tgui/packages/tgui/interfaces/LootPanel/LootBox.tsx +++ b/tgui/packages/tgui/interfaces/LootPanel/LootBox.tsx @@ -1,3 +1,4 @@ +import { type MouseEvent } from 'react'; import { useBackend } from 'tgui/backend'; import { Button, Stack } from 'tgui-core/components'; import type { BooleanLike } from 'tgui-core/react'; @@ -38,14 +39,15 @@ export function LootBox(props: Props) { p={0} fluid color="transparent" - onClick={(event) => + onMouseDown={(event: MouseEvent) => { act('grab', { alt: event.altKey, ctrl: event.ctrlKey, ref: item.ref, shift: event.shiftKey, - }) - } + middle: event.button === 1, + }); + }} onContextMenu={(event) => { event.preventDefault(); act('grab', {