Skip to content

Conversation

@yonathan06
Copy link

I experienced an issue where sortable items with different heights were not transformed properly
The issue was that the delta was calculated as target.x - current.x (or target.y - current.y)
the delta was the diff between an item and the one before/after them, instead of the size of the dragged item
Changed it to transform based on the size of the dragged item

here is a reproduction repo https://stackblitz.com/edit/solidjs-templates-atuhev

@Terbiy
Copy link

Terbiy commented Nov 25, 2025

@martinpengellyphillips, hi! Thank you for the library! Could you please merge this one so that dragging elements of different heights will work?

@Codisy1
Copy link

Codisy1 commented Nov 25, 2025

@martinpengellyphillips, hi! Thank you for the library! Could you please merge this one so that dragging elements of different heights will work?

This is really a very important part of the functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants