Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Proposed fix for issue 1204: only enforce zoom limits in the directio…
…n of the zoom.
  • Loading branch information
neilkatin committed Dec 1, 2013
1 parent 39bc058 commit 8e76158
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.flot.navigate.js
Expand Up @@ -260,8 +260,8 @@ Licensed under the MIT License ~ http://threedubmedia.googlecode.com/files/MIT-L

var range = max - min;
if (zr &&
((zr[0] != null && range < zr[0]) ||
(zr[1] != null && range > zr[1])))
((zr[0] != null && range < zr[0] && amount >1) ||
(zr[1] != null && range > zr[1] && amount <1)))
return;

opts.min = min;
Expand Down

0 comments on commit 8e76158

Please sign in to comment.