function aObj = middrag(aObj)
%AXISTEXT/MIDDRAG

%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 1.2 $   $Date: 2000/06/01 02:52:32 $

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);
