Added offsetX and offsetY to making dragging nodes less jumpy