-
Notifications
You must be signed in to change notification settings - Fork 68
feat: support multiple item drag/resize #133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: support multiple item drag/resize #133
Conversation
Only left-click or touch can drag/resize, to avoid macOS right-click pointerUp inconsistency.
Allow drag/resize of a group of items via `selectedItemsIds` input, overriding default behavior.
Thanks @amanosacrous !! I see a few things that could be improved: 1- The word "handler" in the title of the example isn’t very clear to me, I’d put something like “Multi-Item Drag & Resize”. 2- It would be good to have a small explanatory text about how to select multiple items, otherwise, it might be hard for people to test it. 3 - (Optional) It would be nice to have some kind of mobile support. Maybe a button or checkboxes to select items. Another option could be allowing item selection when two fingers are on the screen, that would be a cool example. 4 - The placeholders sometimes calculate the position incorrectly. It’s not critical, but it looks a bit off. Since the final position is correct, it should be easy to fix. It’s also easy to reproduce. Example: 5 - The selected items can currently swap positions, which shouldn’t be possible. I think we might need to sort the selected items based on the mouse direction and move them accordingly to avoid inconsistencies. I’ll do some further testing to see if that helps. We can also discuss it privately. Grabacion.2025-07-24.160936.mp46- Ideally, selected items should behave, as a single, indivisible block when moved or resized. That behavior isn’t a blocker for me, we can live with it. However, we could look into whether there’s an easy way to fix it. 6.point.mp4Despite these small issues, everything seems quite solid and usable. After those fixes, I will do further testing to re-validate the task! Thanks!! 👏 |
dc73a12
to
fa921c7
Compare
The multiItemAlgorithm input defines which multiple-drag algorithm to use
Maintain the selected structure when one element of the group overflows the layout
Allow drag/resize of a group of items via the selectedItemsIds input, overriding the default single-item behavior.
A new example demo (Angular Grid Layout – Multiple Item Handler) has been added to test the new functionality.