Cleanup, fix bug in floating camera zoom
This commit is contained in:
@@ -64,7 +64,7 @@ translateFloatingCameraKeys theinput = (camCenter -~ thetran) . (camViewFrom -~
|
||||
zoomFloatingCamera :: Input -> Camera -> Camera
|
||||
zoomFloatingCamera theinput
|
||||
| ButtonRight `M.member` (theinput ^. mouseButtons) =
|
||||
camZoom *~ (39/40 ^^ negate (getSmoothScrollValue theinput))
|
||||
camZoom *~ ((39/40) ^^ negate (getSmoothScrollValue theinput))
|
||||
| otherwise = id
|
||||
-- the 39/40 is taken from zoomSpeed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user