From 426b02b08a7598bdb0f79ecf66936ce5a2a056da Mon Sep 17 00:00:00 2001 From: perploug Date: Thu, 3 Apr 2014 00:41:27 +0200 Subject: [PATCH] Sets zoom throttle to 100 instead of 300 To limit the number of re-calculations, but still keep it somewhat fluent --- .../src/common/directives/imaging/umbimagecrop.directive.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/imaging/umbimagecrop.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/imaging/umbimagecrop.directive.js index 1e4d9525c5..74c205417a 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/imaging/umbimagecrop.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/imaging/umbimagecrop.directive.js @@ -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