Skip to content

Commit

Permalink
Fix zoom making smallestSize negative
Browse files Browse the repository at this point in the history
  • Loading branch information
cbossut committed Jan 26, 2020
1 parent e790101 commit 29911ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PanSvg.elm
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ update msg model =
model.viewPos

factor =
1 + f / 1000
clamp 0.01 2 <| 1 + f / 1000

p =
Vec.sub (mapIn (vec2 x y) model) vp.c
Expand Down

0 comments on commit 29911ea

Please sign in to comment.