You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specifically, using ondragstart instead of onmousedown for the DragStart event. Although users would have to specify the draggable attribute on their elements (which is why it should be optional), it would allow users to handle the onclick event on the draggable element. Currently, handling a click on the drag handler isn’t possible because onmousedown always fires first.
The text was updated successfully, but these errors were encountered:
Specifically, using ondragstart instead of onmousedown for the DragStart event. Although users would have to specify the draggable attribute on their elements (which is why it should be optional), it would allow users to handle the onclick event on the draggable element. Currently, handling a click on the drag handler isn’t possible because onmousedown always fires first.
If you would like to handle onClick event on a button inside a draggable item, just use Html.Events.stopPropagationOn "mousedown", like this:
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: