From caf6c11b712a0ee171c5aa00943710514c77c51a Mon Sep 17 00:00:00 2001 From: rtrampox Date: Tue, 24 Dec 2024 14:16:44 -0300 Subject: [PATCH] chore: remove unused effect --- src/lib/Cropper.svelte | 10 ---------- 1 file changed, 10 deletions(-) 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)