-
Notifications
You must be signed in to change notification settings - Fork 14
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
Consider the option to use drag events instead #77
Comments
Thank you for reporting this, I will check how to integrate it. |
If you would like to handle onClick event on a button inside a draggable item, just use button
[ onClick MyOnClickMsg
, Html.Events.stopPropagationOn "mousedown" <| Decode.succeed (Noop, True)
]
[ text "button inside a draggable container" ) |
Specifically, using
ondragstart
instead ofonmousedown
for the DragStart event. Although users would have to specify thedraggable
attribute on their elements (which is why it should be optional), it would allow users to handle theonclick
event on the draggable element. Currently, handling a click on the drag handler isn’t possible becauseonmousedown
always fires first.The text was updated successfully, but these errors were encountered: