sconsult / croppic

croppic
914 stars 228 forks source link

zoom hide #291

Open good1515 opened 5 years ago

good1515 commented 5 years ago

Zoom hide New features I have modified 3 places

file croppic.js

`

  1. line 28 cropZoomControls:true,

  2. line 407 if(that.options.cropZoomControls){ var cropControlZoomIn = '\'; var cropControlZoomOut = '\'; }else{ var cropControlZoomIn = ''; var cropControlZoomOut = ''; }

  3. line 436 if(that.options.cropZoomControls){ that.cropControlZoomIn = that.cropControlsCrop.find('.cropControlZoomIn'); that.cropControlZoomIn.on('click',function(){ that.zoom(that.options.zoomFactor); }); } if(that.options.cropZoomControls){ that.cropControlZoomIn = that.cropControlsCrop.find('.cropControlRotateLeft'); that.cropControlZoomIn.on('click', function() { that.rotate(-that.options.rotateFactor); }); }

`