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

Feature Request #23

Open
Monotoba opened this issue Feb 14, 2018 · 4 comments
Open

Feature Request #23

Monotoba opened this issue Feb 14, 2018 · 4 comments

Comments

@Monotoba
Copy link

Let me say your lib is great and easy to use. However, it is lacking one feature (and so is the native dart) that would ease development for many. That one feature would be the offset between the mouse pointer (position) and the upper left corner of the element being dragged. This would help in setting the position for the element being dragged.

@marcojakob
Copy link
Owner

Do you see a way to do this?

@Monotoba
Copy link
Author

The only way I see to do it is to get the mouse pointer offset in onDragStart and then make it available in onDrop. I'm using this https://stackoverflow.com/questions/33360151/moving-elements-by-dragging-in-dart at the moment but if it were part of your lib. it would make life easier for all.

@marcojakob
Copy link
Owner

I think this would be a helpful feature to include. Would you mind implementing it? I would be happy to review and accept a pull request for it.

@Monotoba
Copy link
Author

I can try but I am new to Dart and Dart web development... I haven't even looked at your code yet and I an struggling with getting drag and drop to work. But I'll give it a try.

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

No branches or pull requests

2 participants