Make crosshair snap to nearest datapoint