Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Commit

Permalink
Merge pull request #31 from KarlDoyle/master
Browse files Browse the repository at this point in the history
self.applyZoom fix - #29
  • Loading branch information
bcabanes committed Mar 15, 2016
2 parents 68ab785 + 9001d49 commit f5f6fb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/imageCropper.js
Expand Up @@ -121,10 +121,10 @@ Cropper.prototype.bindControls = function() {
self.applyRotation(90);
});
this.elements.controls.zoomIn.addEventListener('click', function() {
self.applyZoom(self.zoomInFactor);
self.applyZoomIn(self.zoomInFactor);
});
this.elements.controls.zoomOut.addEventListener('click', function() {
self.applyZoom(self.zoomOutFactor);
self.applyZoomOut(self.zoomOutFactor);
});
this.elements.controls.fit.addEventListener('click', this.applyFit.bind(this));
this.elements.controls.crop.addEventListener('click', this.cropImage.bind(this));
Expand Down

0 comments on commit f5f6fb4

Please sign in to comment.