Cleanup
This commit is contained in:
+1
-7
@@ -306,8 +306,6 @@ checkTermDist w = fromMaybe w $ do
|
||||
|
||||
updateMouseContext :: Configuration -> Universe -> Universe
|
||||
updateMouseContext cfig u = case u ^. uvWorld . input . mouseContext of
|
||||
OverInvFiltDrag -> u & uvWorld . input . mouseContext .~ invfiltdrag
|
||||
OverInvFiltDragDrop -> u & uvWorld . input . mouseContext .~ invfiltdrag
|
||||
OverInvDrag {} -> u & uvWorld . input . mouseContext .~ invdrag
|
||||
OverInvDragSelect{} -> u
|
||||
_ -> u & uvWorld . input . mouseContext
|
||||
@@ -341,10 +339,6 @@ updateMouseContext cfig u = case u ^. uvWorld . input . mouseContext of
|
||||
sss <- w ^? hud . hudElement . diSections
|
||||
(0,j) <- inverseSelNumPos cfig (invDisplayParams w) sss mpos
|
||||
return $ OverInvDrag $ Just j
|
||||
invfiltdrag = fromMaybe OverInvFiltDragDrop $ do
|
||||
sss <- w ^? hud . hudElement . diSections
|
||||
(0,_) <- inverseSelNumPos cfig (invDisplayParams w) sss mpos
|
||||
return $ OverInvFiltDrag
|
||||
overinv = do
|
||||
sss <- w ^? hud . hudElement . diSections
|
||||
selpos <- inverseSelNumPos cfig (invDisplayParams w) sss mpos
|
||||
@@ -359,7 +353,7 @@ updateMouseContext cfig u = case u ^. uvWorld . input . mouseContext of
|
||||
let mpossel = inverseSelNumPos cfig secondColumnParams sss (w ^. input . mousePos)
|
||||
return $ case mpossel of
|
||||
Nothing -> OverCombEscape
|
||||
Just (-1, _) -> OverCombFilter
|
||||
Just (-1, i) | (-1,i) == msel -> OverCombFilter
|
||||
Just x | x == msel -> OverCombCombine x
|
||||
Just x -> OverCombSelect x
|
||||
overterm = do
|
||||
|
||||
Reference in New Issue
Block a user