Skip to content

Commit

Permalink
chore: remove unused effect
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrampox committed Dec 24, 2024
1 parent 6145bf8 commit caf6c11
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/lib/Cropper.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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<HTMLDivElement> = node => {
$effect(() => {
node.addEventListener('touchstart', onTouchStart)
Expand Down

0 comments on commit caf6c11

Please sign in to comment.