function aObj = middrag(aObj)
%AXISTEXT/MIDDRAG

%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 1.1 $   $Date: 1998/10/21 21:45:26 $

savedState = get(aObj,'SavedState');

if savedState.DataUnitDrag
   pointer = get(savedState.Ax, 'CurrentPoint');
else
   pointer = get(savedState.Fig, 'CurrentPoint');
end

pointX = pointer(1,1);
pointY = pointer(1,2);

aObj = domove(aObj,pointX,pointY);
