Skip to content

Commit

Permalink
Merge pull request #2 from eliksir/fix-enable-zoom
Browse files Browse the repository at this point in the history
Fix enableZoom option to be honored when set
  • Loading branch information
stianpr authored Jun 12, 2020
2 parents d467148 + 83a1a51 commit 4a0d071
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions croppie.js
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,9 @@
}

function _updateZoomLimits (initial) {
if (!this.options.enableZoom) {
return;
}
var self = this,
minZoom = Math.max(self.options.minZoom, 0) || 0,
maxZoom = self.options.maxZoom || 1.5,
Expand Down

0 comments on commit 4a0d071

Please sign in to comment.