Jan Hrček
2017-09-15 11:27:27 UTC
I've been figthing with the following drag and drop issue: when performing
multiple drag & drop operations in rapid succession it sometimes happes
that drag is in progress, even though my mouse key is up. In this state
moving the mouse moves the dragged element and you have to click again to
stop the drag (and the element suddenly jumps somewhere it was before). My
expectation would be that no matter how rapidly/sloppy I do the dragging,
mouse up would always mean that dragging is not in progress. This issue can
be reproduced both in latest chrome (61) and firefox (55).
This issue can be easily reproduced in drag example on elm website:
http://elm-lang.org/examples/drag
Just try dragging and dropping in rapid succession. After few tries you'll
notice you're dragging the element even though you're not holding the mouse
button.
I suspect that this behavior has something to do with text withing the
dragged element's inner text being selectable.
When I add the following style attributes to the drag example, I can no
longer reproduce the issue no matter how fast/sloppily I click:
, "user-select" => "none"
, "-moz-user-select" => "none"
Has anyone noticed this issue with drag& drop before? Do you have some
explanation / other workaround to fix it (than making text inside dragged
element non-selectable)?
Regards
Jan
multiple drag & drop operations in rapid succession it sometimes happes
that drag is in progress, even though my mouse key is up. In this state
moving the mouse moves the dragged element and you have to click again to
stop the drag (and the element suddenly jumps somewhere it was before). My
expectation would be that no matter how rapidly/sloppy I do the dragging,
mouse up would always mean that dragging is not in progress. This issue can
be reproduced both in latest chrome (61) and firefox (55).
This issue can be easily reproduced in drag example on elm website:
http://elm-lang.org/examples/drag
Just try dragging and dropping in rapid succession. After few tries you'll
notice you're dragging the element even though you're not holding the mouse
button.
I suspect that this behavior has something to do with text withing the
dragged element's inner text being selectable.
When I add the following style attributes to the drag example, I can no
longer reproduce the issue no matter how fast/sloppily I click:
, "user-select" => "none"
, "-moz-user-select" => "none"
Has anyone noticed this issue with drag& drop before? Do you have some
explanation / other workaround to fix it (than making text inside dragged
element non-selectable)?
Regards
Jan
--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.