score:3

Accepted answer

you could resolve that by attaching the mousemove (and mouseup)to the whole document this way they will be fired no matter if the mouse gets out of the element you want to drag. just remember to detach the event during componentwillunmount to avoid leaks.

further more if you want you site to work on mobile you need to attach touch, pointer or drag events. see the code of the kendo-draggable abstraction for a reference. we are using it in our react components. bind to the element on componentdidmount and detach on componentwillunmount


Related Query

More Query from same tag