Skip to content

Commit

Permalink
Fix enableZoom option to be honored when set
Browse files Browse the repository at this point in the history
  • Loading branch information
stianpr committed Jun 12, 2020
1 parent d467148 commit 83a1a51
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 83a1a51

Please sign in to comment.