Select item under mouse after releasing drag selection

This commit is contained in:
2024-11-29 21:01:04 +00:00
parent 126f328198
commit d09e715653
+1 -1
View File
@@ -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