whether or not currently dragging
Start left of t.getDOmNode()
Start top of t.getDOmNode()
Offset between start left and mouse left
Offset between start top and mouse top
Current left of this.getDOMNode()
Current top of this.getDOMNode()
specifies a selector to be used to prevent drag initialization.
Called while dragging
if true will place the element using translate(x, y) rather than CSS top/left. This generally gives better performance, and is useful in combination with other layout systems that use translate(), such as react-grid-layout.
css class names map
ref for this component
tells the Draggable element to reset its position
if the start
parameters are changed. By default, if the start
parameters change, the Draggable element still remains where it started
or was dragged to.
specifies the x and y that dragging should snap to.
key for this react component
specifies the zIndex to use while dragging.
determines which axis the draggable can move.(both,x,y)
Called when dragging stops
specifies the x and y that the dragged item should start at
Called when dragging starts.
* A workaround option which can be passed if onMouseDown needs to be accessed, since it'll always be blocked (due to that there's internal use of onMouseDown)
specifies a selector to be used as the handle that initiates drag.