Sets zoom throttle to 100 instead of 300

To limit the number of re-calculations, but still keep it somewhat
fluent
This commit is contained in:
perploug
2014-04-03 00:41:27 +02:00
parent a4e23ef82b
commit 426b02b08a

View File

@@ -106,7 +106,6 @@ angular.module("umbraco.directives")
//when loading an image without any crop info, we center and fit it
var resizeImageToEditor = function(){
//returns size fitting the cropper
var size = cropperHelper.calculateAspectRatioFit(
scope.dimensions.image.width,
@@ -254,7 +253,7 @@ angular.module("umbraco.directives")
var throttledResizing = _.throttle(function(){
resizeImageToScale(scope.dimensions.scale.current);
calculateCropBox();
}, 300);
}, 100);
//happens when we change the scale