Fix reset of reloading from 0 scrolling

This commit is contained in:
2023-01-08 00:17:16 +00:00
parent f8d9b54586
commit 44bb6e7e02
4 changed files with 9 additions and 16 deletions
+1 -9
View File
@@ -9,18 +9,10 @@ import Dodge.Data.Universe
--import qualified IntMapHelp as IM
testStringInit :: Universe -> [String]
testStringInit u =
[ show $ u ^. uvWorld . input . scrollAmount
, maybe mempty show mit
, maybe mempty (show . f) mit
, maybe mempty show mit'
, maybe mempty show mit''
[ show $ ycr ^?! crInvSel . iselAction
]
where
f x = 1/ (x *2) ** (40/39)
ycr = you (u ^. uvWorld)
mit = ycr ^? crInv . ix (crSel ycr) . itScope . scopeZoom
mit' = ycr ^? crInv . ix (crSel ycr) . itScope . scopePos
mit'' = ycr ^? crInv . ix (crSel ycr) . itScope . scopeZoomChange
showTimeFlow :: TimeFlowStatus -> String
showTimeFlow tfs = case tfs of