Skip to content

Commit 09f943f

Browse files
committed
Merge pull request sconsult#159 from EricDu/patch-1
Add initialZoom value
2 parents 9ba9a0c + 857b8f3 commit 09f943f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

croppic.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
//styles
2424
imgEyecandy:true,
2525
imgEyecandyOpacity:0.2,
26+
initialZoom:40,
2627
zoomFactor:10,
2728
rotateFactor:5,
2829
doubleZoomControls:true,
@@ -374,7 +375,7 @@
374375
initialScaleImg:function(){
375376
var that = this;
376377
that.zoom(-that.imgInitW);
377-
that.zoom(40);
378+
that.zoom(that.options.initialZoom);
378379

379380
// Adding mousewheel zoom capabilities
380381
if (that.options.enableMousescroll){

0 commit comments

Comments
 (0)