Changeset 543 for trunk/src/mouse_down.m


Ignore:
Timestamp:
Sep 15, 2012, 10:31:02 PM (9 years ago)
Author:
sommeria
Message:

suppress iscolumn in find_field_cells (do not exist in Matlab 2009)
improve behaviour of mouse selection near the edge of view field

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_down.m

    r541 r543  
    102102                haxes=hchild;
    103103                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)
    105105                    AxeData=get(hchild,'UserData');% data attached to the axis
    106106                    AxeData.CurrentOrigin=[xy(1,1) xy(1,2)];% The current point set by the mouse becomes the current origin
     
    125125                        end
    126126                    end
    127                 else
    128                     hchild=[];%mouse out of axes
    129                 end
     127%                 else
     128%                     hchild=[];%mouse out of axes
     129%                 end
    130130                break
    131131               
Note: See TracChangeset for help on using the changeset viewer.