I want to call my custom callback function every time, when user starts dragging figures. I tried to do it like so:
figure.onDragStart = function (x, y, shiftKey, ctrlKey) {
myfunc();
};
But the problem is, every time when my function is called, figure is positioned to 0,0 coordinate. I'm not sure what is wrong with that and how can I fix it.