From d09e715653eaecdd3360c4222d62b65a65ea0556 Mon Sep 17 00:00:00 2001 From: justin Date: Fri, 29 Nov 2024 21:01:04 +0000 Subject: [PATCH] Select item under mouse after releasing drag selection --- src/Dodge/Update/Input/InGame.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dodge/Update/Input/InGame.hs b/src/Dodge/Update/Input/InGame.hs index 0edd28413..0a18ad4fa 100644 --- a/src/Dodge/Update/Input/InGame.hs +++ b/src/Dodge/Update/Input/InGame.hs @@ -155,7 +155,7 @@ updateMouseReleaseInGame w = case w ^. input . mouseContext of & hud . hudElement . diSelection . _Just . _3 %~ const mempty OverInvDragSelect ssel (Just esel) -> w & input . mouseContext .~ MouseInGame - & augInvDirectSelect (f (min ssel (fst ssel,esel)) (h ssel esel)) + & augInvDirectSelect (f (fst ssel,esel) (h ssel esel)) _ -> w where getuniques x y = IS.union x y IS.\\ IS.intersection x y