Skip to content

Commit

Permalink
fabric.js contrainScale() now checks for NaN
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmandel committed Apr 23, 2018
1 parent bb52fe8 commit b8b082d
Show file tree
Hide file tree
Showing 6 changed files with 28,781 additions and 4 deletions.
4 changes: 4 additions & 0 deletions js/fabric-v1.7.22.js
Expand Up @@ -14327,6 +14327,10 @@ fabric.util.object.extend(fabric.StaticCanvas.prototype, /** @lends fabric.Stati
else {
return this.minScaleLimit;
}
} else if (value !== value) {
return this.minScaleLimit;
} else if (value === 0) {
return 1e-4;
}
return value;
},
Expand Down
556 changes: 555 additions & 1 deletion js/fabric-v1.7.22.min.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion js/fabric.js

This file was deleted.

0 comments on commit b8b082d

Please sign in to comment.