Fix: dropping item alignment #2167
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR improves the drag-from-outside behavior to deliver a more intuitive and consistent user experience.
Problem Statement
Currently, the library treats the cursor as the top-left corner of the dragged item. This causes the placeholder to always appear below and to the right of the cursor, making interactions feel inaccurate. The problem becomes more noticeable with larger items, where the gap between cursor and placeholder is especially distracting.
Comparison of Solutions
Current behavior (cursor = top-left corner):
Current.behavior.mov
Base PR #2072 (cursor = center):
Centered.cursor.mov
Our enhanced solution (cursor offset awareness):
Cursor.offset.awareness.mov
Benefits of Cursor Offset Awareness
Proven in Production
This cursor-offset approach has been used in production in a key feature of a big multinational SaaS for nearly a year. It has proven reliable, delivering a smooth user experience without generating related support tickets - evidence of its stability and effectiveness.
Why Merge This
This enhancement is the natural evolution of PR #2072. It not only resolves the placeholder misalignment but also elevates usability to match real-world user expectations. With demonstrated community interest and production validation, this solution offers the most solid and future-proof approach for drag-from-outside positioning.
What type of PR is this? (check all applicable)
Related Tickets & Documents
Mobile & Desktop Screenshots/Recordings
Added tests?
Added to documentation?