Improve rotate drag mouse context
This commit is contained in:
@@ -94,6 +94,8 @@ updateMouseInGame cfig w
|
||||
|
||||
updateMouseHeldInGame :: Configuration -> World -> World
|
||||
updateMouseHeldInGame cfig w = case w ^. input . mouseContext of
|
||||
OverInvDragSelect {} | ButtonRight `M.member` (w ^. input . mouseButtons)
|
||||
-> w & input . mouseContext .~ MouseGameRotate
|
||||
OverInvDragSelect sstart _ -> fromMaybe w $ do
|
||||
sss <- w ^? hud . hudElement . diSections
|
||||
let msel = inverseSelNumPos cfig invDP sss (w ^. input . mousePos)
|
||||
|
||||
Reference in New Issue
Block a user