Skip to content
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

[TileLayout] Calculate new position consistently regardless of the position of the drag handle #4470

Open
yanmariomenev opened this issue Nov 26, 2024 · 0 comments

Comments

@yanmariomenev
Copy link
Contributor

yanmariomenev commented Nov 26, 2024

Description

There is currently a discrepancy in how the target position of a dragged item is calculated. The behavior changes depending on whether another tile is present under the current cursor/handle position.

Steps To Reproduce

https://stackblitz.com/edit/angular-xxzchb-kbsvuy?file=src%2Fapp%2Fapp.component.ts
https://stackblitz.com/edit/angular-preejp?file=src%2Fapp%2Fapp.component.ts
Try to move the bottom tile to the top when dragging from the middle of the tile or far right. Check the screen recording as a reference.

Screenshots or video

Screen.Recording.2024-11-25.at.14.53.57.mov

Expected Behavior

The new position of the dragged tile should be dynamically calculated based on the item's "starting point" coordinates (top-left corner), along with its row and column span. This calculation should be consistent, regardless of the exact cursor position within the draggable header.

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

No branches or pull requests

1 participant