Fixed little bugs in graph ui

Fixed a bug where on mouse up the record would sometimes move once. Also
fixed a bug where as you moved a record along, the cursor would switch
to the next/previous record.