jgraph / mxgraph

mxGraph is a fully client side JavaScript diagramming library
Other
6.82k stars 2.06k forks source link

mxDragSource previewOffset is used but never declared #493

Closed Alex4Yang closed 4 years ago

Alex4Yang commented 4 years ago

previewOffset variable is used to make an offset when dragging cell on the graph but is never declared or have a setter

mxClient.js:

if (this.previewOffset != null)
{
    x += this.previewOffset.x;
    y += this.previewOffset.y;
}
davidjgraph commented 4 years ago

https://github.com/jgraph/mxgraph2/commit/e895c9280bc902be8df14bd503cbd027d0125035