-Updated Grapher code for fixed cursor dragging