Change load order when focusing image
This commit is contained in:
parent
40757cbe6a
commit
f364d00d3e
|
@ -237,7 +237,7 @@ update' (ImgUpdate isThumb pos newData) (GLoaded gal) =
|
||||||
_, Nothing -> Modify $ GError $ UnexpectedError $ "Suprising out of bound index!"
|
_, Nothing -> Modify $ GError $ UnexpectedError $ "Suprising out of bound index!"
|
||||||
_, (Just _) -> Modify newGallery -- No fetch required
|
_, (Just _) -> Modify newGallery -- No fetch required
|
||||||
update' (Focus imageIndex) (GLoaded gal) = Both
|
update' (Focus imageIndex) (GLoaded gal) = Both
|
||||||
([DownloadImage >>> pure] <*> [imageIndex, imageIndex - 1, imageIndex + 1])
|
([DownloadImage >>> pure] <*> [imageIndex, imageIndex + 1, imageIndex - 1])
|
||||||
(GLoaded gal{ focus = Just { imageIndex, zoom: false } })
|
(GLoaded gal{ focus = Just { imageIndex, zoom: false } })
|
||||||
update' Unfocus (GLoaded gal) = Modify $ GLoaded gal{ focus = Nothing }
|
update' Unfocus (GLoaded gal) = Modify $ GLoaded gal{ focus = Nothing }
|
||||||
update' Zoom (GLoaded gal) = Modify $ GLoaded gal{ focus = gal.focus <#> _{ zoom = true } }
|
update' Zoom (GLoaded gal) = Modify $ GLoaded gal{ focus = gal.focus <#> _{ zoom = true } }
|
||||||
|
|
Loading…
Reference in a new issue