Skip to content

Commit 426b02b

Browse files
author
perploug
committed
Sets zoom throttle to 100 instead of 300
To limit the number of re-calculations, but still keep it somewhat fluent
1 parent a4e23ef commit 426b02b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Umbraco.Web.UI.Client/src/common/directives/imaging/umbimagecrop.directive.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ angular.module("umbraco.directives")
106106

107107
//when loading an image without any crop info, we center and fit it
108108
var resizeImageToEditor = function(){
109-
110109
//returns size fitting the cropper
111110
var size = cropperHelper.calculateAspectRatioFit(
112111
scope.dimensions.image.width,
@@ -254,7 +253,7 @@ angular.module("umbraco.directives")
254253
var throttledResizing = _.throttle(function(){
255254
resizeImageToScale(scope.dimensions.scale.current);
256255
calculateCropBox();
257-
}, 300);
256+
}, 100);
258257

259258

260259
//happens when we change the scale

0 commit comments

Comments
 (0)