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

Generic Drag & Drop add drop coordinates #19297

Open
lipisak opened this issue Apr 26, 2024 · 0 comments
Open

Generic Drag & Drop add drop coordinates #19297

lipisak opened this issue Apr 26, 2024 · 0 comments

Comments

@lipisak
Copy link

lipisak commented Apr 26, 2024

Describe your motivation

As developer I would like to have access to coordinates of dragged item within drop zone

Describe the solution you'd like

Add API to DropEvent which would return offsetX and offsetY drop event data which are part of generic HTML5 DnD DropEvent (event.offsetX, event.offsetY)

Describe alternatives you've considered

I've tried to use this solution

But it's not usable as I can't access the data that I would pass by setDragData method on DragSource.

Additional context

No response

@rolfsmeds rolfsmeds transferred this issue from vaadin/flow-components May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants