scottcheng / cropit

A "customizable crop and zoom" jQuery plugin.
http://scottcheng.github.io/cropit/
MIT License
874 stars 304 forks source link

How to use onOffsetChange? #161

Closed iwasherefirst2 closed 8 years ago

iwasherefirst2 commented 8 years ago

Could you give a minimal example how to use this function? I asked this question here.

scottcheng commented 8 years ago
$('.image-editor').cropit({
  onOffsetChange: function(newOffset) {
    console.log(newOffset);
  }
});