diff --git a/src/lib/Cropper.svelte b/src/lib/Cropper.svelte index 77f4487..ed12bdf 100644 --- a/src/lib/Cropper.svelte +++ b/src/lib/Cropper.svelte @@ -254,16 +254,6 @@ } }) - // this variable is required to prevent the effect into entering an infinite loop (https://github.com/ValentinH/svelte-easy-crop/pull/59#discussion_r1896254867) - let lastAspect = $state(aspect) - $effect(() => { - if (aspect !== lastAspect) { - lastAspect = aspect - computeSizes() - emitCropData() - } - }) - const containerAction: Action = node => { $effect(() => { node.addEventListener('touchstart', onTouchStart)