Ignore:
Timestamp:
01/28/14 22:04:27 (10 years ago)
Author:
davidb
Message:

Mouse panning action updated to take into account the status of any items that are anchored, and therefore shouldn't move

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/actions/Misc.java

    r766 r774  
    12261226                                continue;
    12271227                        } else if(i instanceof XRayable) {
     1228                            if (!i.isAnchored()) {
    12281229                                i.setPosition(i.getX() + x, i.getY() + y);
     1230                            }
    12291231                        } else {
     1232                            if (!i.isAnchored()) {
    12301233                                i.setXY(i.getX() + x, i.getY() + y);
     1234                            }
    12311235                        }
    12321236                        // update the polygon, otherwise stuff moves but leaves it's outline behind
     
    12341238                }
    12351239                for(InteractiveWidget iw : frame.getInteractiveWidgets()) {
     1240                    if (!iw.isAnchored()) {
    12361241                        iw.setPosition(iw.getX() + x, iw.getY() + y);
     1242                    }
    12371243                }
    12381244                // make sure we save the panning of the frame
Note: See TracChangeset for help on using the changeset viewer.