Skip to content

Commit

Permalink
Fix zoom-only bug in optimal
Browse files Browse the repository at this point in the history
  • Loading branch information
ansis committed Jul 13, 2012
1 parent 533a751 commit 9789608
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/easey.js
Expand Up @@ -245,8 +245,8 @@
var s = t * S,
us = u(s),
z = a.zoom + (Math.log(w0/w(s)) / Math.LN2),
x = interp(c0.x, c1.x, us/u1),
y = interp(c0.y, c1.y, us/u1);
x = interp(c0.x, c1.x, us/u1 || 1),
y = interp(c0.y, c1.y, us/u1 || 1);
return new MM.Coordinate(y, x, 0).zoomTo(z);
};

Expand Down

0 comments on commit 9789608

Please sign in to comment.