Skip to content

Export validateDragHandle #85

Closed
Closed
@philipstarkey

Description

@philipstarkey

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?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions