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

Drag Handles #20

Closed
fabien opened this issue Apr 19, 2015 · 2 comments
Closed

Drag Handles #20

fabien opened this issue Apr 19, 2015 · 2 comments

Comments

@fabien
Copy link

fabien commented Apr 19, 2015

It would be great if one could specify a css selector for drag handles.

@fabien
Copy link
Author

fabien commented Apr 19, 2015

A naive implementation, perhaps: https://gist.github.com/fabien/20f31a2e3f676849d7ca#file-gistfile1-js-L89

@bevacqua
Copy link
Owner

I implemented this by providing a third argument to moves that exposes the original e.target. This can be used to determine any sort of drag handling behavior. You could just check for a class on that specific element, or you might want to walk up the DOM tree and see if any parents match a class, etc. It's in 1.5.0

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