Skip to content
Permalink
Browse files

Update image on mousewheel zoom

  • Loading branch information...
nikolai-b committed Sep 10, 2019
1 parent 18014c0 commit 648f3d753ba33e74640d41c5e77e1090f1b9ae04
Showing with 1 addition and 2 deletions.
  1. +1 −2 app/assets/javascripts/image_edit.js
@@ -62,17 +62,16 @@ ImageEdit.prototype.initCroppie = function () {
}.bind(this)
})
this.previewEl[0].addEventListener('cropend', this.updateResult)
this.previewEl[0].addEventListener('zoom', this.updateResult)
this.rotateEl.parent().on('click', function () {
this.cropper.rotate(-90)
this.updateResult()
}.bind(this))
this.zoomInEl.parent().on('click', function () {
this.cropper.zoom(0.1)
this.updateResult()
}.bind(this))
this.zoomOutEl.parent().on('click', function () {
this.cropper.zoom(-0.1)
this.updateResult()
}.bind(this))
}

0 comments on commit 648f3d7

Please sign in to comment.
You can’t perform that action at this time.