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

Export validateDragHandle #85

Closed
philipstarkey opened this issue Jul 16, 2024 · 2 comments
Closed

Export validateDragHandle #85

philipstarkey opened this issue Jul 16, 2024 · 2 comments
Assignees

Comments

@philipstarkey
Copy link

I have a use case where I need to add additional functionality to handleDragstart and handleTouchstart, while still calling the base handlers. I can do this easily enough (thanks for exposing them in the config and exporting them from the base module!) but when using drag handles, I have no way of determining if the base handleDragstart/handleTouchstart function has returned immediately because it wasn't the drag handle that triggered the event, or because it's finished successfully.

While it seems possible that a fix for #43 might address this, another immediate solution to my issue would be to export validateDragHandle(). That would allow me to verify the event was triggered by the handle before calling my extra code. It doesn't look like validateDragHandle is any more internal than any of the other exports, so I'm guessing there isn't any barrier to doing this?

@sashamilenkovic sashamilenkovic self-assigned this Jul 16, 2024
@sashamilenkovic
Copy link
Contributor

Great question. I can export this as well. I'll get back to you when I get the chance.

@sashamilenkovic
Copy link
Contributor

This is now exported at v0.2.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