Set nodeDragThreshold to 1
This removes an expensive `dragging: false` update on mouseup (with `dragging: true` never even dispatched)
This commit is contained in:
@@ -61,7 +61,7 @@ const getInitialState = ({
|
|||||||
paneDragging: false,
|
paneDragging: false,
|
||||||
noPanClassName: 'nopan',
|
noPanClassName: 'nopan',
|
||||||
nodeOrigin: [0, 0],
|
nodeOrigin: [0, 0],
|
||||||
nodeDragThreshold: 0,
|
nodeDragThreshold: 1,
|
||||||
|
|
||||||
snapGrid: [15, 15],
|
snapGrid: [15, 15],
|
||||||
snapToGrid: false,
|
snapToGrid: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user