fireship-io / fkit-course

The Full SvelteKit Course
172 stars 31 forks source link

Drop effect bug in the drag & drop reordering #3

Open tothambrus11 opened 1 year ago

tothambrus11 commented 1 year ago

When you create 3 links, and drag the middle one to either over the top or bottom one repeatedly, the hover effect only works every second time even though the swapping action is executed successfully. I assume there is some comparison whether the current dragged item is the same as the one that we are dragging over but this seems to have a bug and compares it with the wrong object.

Cool website btw ;)