elm has a clap function already
This commit is contained in:
parent
3200a4618f
commit
42d0ff65b8
@ -61,12 +61,6 @@ zoomStep = 8
|
||||
toZoom : FineZoomLevel -> ZoomLevel
|
||||
toZoom (FineZoomLevel f) = f // zoomStep
|
||||
|
||||
clamp min max val =
|
||||
if val < min
|
||||
then min
|
||||
else if val > max
|
||||
then max
|
||||
else val
|
||||
|
||||
incZoom : FineZoomLevel -> Int -> FineZoomLevel
|
||||
incZoom (FineZoomLevel z) delta =
|
||||
|
Loading…
Reference in New Issue
Block a user