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

Expose a move event from drag to get y & x values from the moving element #73

Open
MrXtry opened this issue Apr 10, 2018 · 0 comments
Open

Comments

@MrXtry
Copy link

MrXtry commented Apr 10, 2018

I'm submitting a ... (check one with "x")

[ ] bug report => Search github for a similar issue or PR before submitting
[x] feature request
[x] support request => Sorry, we will not be able to answer every support request.  Please consider other venues for support requests

Current behavior
-ex: drag, drop, over, out, remove and cancel.
I know there are some events which can be extended / called from the view and the drag event is only called once.

Expected behavior
Is there a way to extend the drag event so it is called multiple times or extend the y & x values from the drag object each times it moves in real time?
or create another event calld like "move"? which is called each time the event moves.

What is the motivation / use case for changing the behavior?
For an example if you want to get the y & x value from the drag object, on each small movment to call a websocket for real time drag and drop behavior, so all the users which are using you application can see the movment in real time.

  • "@swimlane/ngx-dnd": "^3.2.0"

  • Angular version: 5.2.9

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

  • Language: [all | TypeScript X.X | ES6/7 | ES5]
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

2 participants