From d03ecffd35e2e24fc08ef60c76539d558c06799a Mon Sep 17 00:00:00 2001 From: Kavashen Pather Date: Sat, 16 Nov 2019 07:47:59 +0530 Subject: [PATCH] fix/remove delta validation for onNodePositionChange (#266) --- src/components/graph/Graph.jsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/graph/Graph.jsx b/src/components/graph/Graph.jsx index d2ca7731b..c6a7b18bf 100644 --- a/src/components/graph/Graph.jsx +++ b/src/components/graph/Graph.jsx @@ -436,13 +436,9 @@ export default class Graph extends React.Component { return; } - const { id, oldX, oldY, x, y } = node; - const deltaX = x - oldX; - const deltaY = y - oldY; + const { id, x, y } = node; - if (deltaX !== 0 || deltaY !== 0) { - this.props.onNodePositionChange(id, x, y); - } + this.props.onNodePositionChange(id, x, y); }; /**