Changeset 543 for trunk/src/mouse_down.m
 Timestamp:
 Sep 15, 2012, 10:31:02 PM (9 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/src/mouse_down.m
r541 r543 102 102 haxes=hchild; 103 103 xy=get(hchild,'CurrentPoint');%xy(1,1),xy(1,2): current x,y positions in axes coordinates 104 if xy(1,1)>x_lim(1) && xy(1,1)<x_lim(2) && xy(1,2)>y_lim(1) && xy(1,2)<y_lim(2)104 % if xy(1,1)>x_lim(1) && xy(1,1)<x_lim(2) && xy(1,2)>y_lim(1) && xy(1,2)<y_lim(2) 105 105 AxeData=get(hchild,'UserData');% data attached to the axis 106 106 AxeData.CurrentOrigin=[xy(1,1) xy(1,2)];% The current point set by the mouse becomes the current origin … … 125 125 end 126 126 end 127 else128 hchild=[];%mouse out of axes129 end127 % else 128 % hchild=[];%mouse out of axes 129 % end 130 130 break 131 131
Note: See TracChangeset
for help on using the changeset viewer.