Changeset 31


Ignore:
Timestamp:
05/14/08 09:42:21 (16 years ago)
Author:
ra33
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/MouseEventRouter.java

    r22 r31  
    1616
    1717import org.expeditee.items.InteractiveWidget;
    18 import org.expeditee.items.Item;
    1918
    2019/**
     
    9594                                        || Frame.itemAttachedToCursor()) {
    9695                                forwardToExpiditee = true;
     96<<<<<<< .mine
     97                        } else if (DisplayIO.getCurrentFrame() != null) { // is mouse over
     98                                                                                                                                // a specific
     99                                                                                                                                // expeditee
     100                                                                                                                                // item?
     101                                // NOTE: Do not use FrameUtils.getCurrentItem() - thats relevent
     102                                // for old mouse position only
     103                                /*
     104                                 * for (Item i : DisplayIO.getCurrentFrame().getItems()) { if
     105                                 * (i.getPolygon().contains(containerPoint)) {
     106                                 * forwardToExpiditee = true; break; } }
     107                                 */// ABOVE: Does not consider overlays
     108                                // NOTE: Below is an expensive operation and could be re-used
     109                                // when passing mouse events!!!
     110                                forwardToExpiditee = (FrameUtils.onItem(DisplayIO
     111                                                .getCurrentFrame(), containerPoint.x, containerPoint.y) != null);
     112=======
    97113                        } else if (DisplayIO.getCurrentFrame() != null) { // is mouse over
    98114                                // a specific
     
    107123                                        }
    108124                                }
     125>>>>>>> .r28
    109126                        }
    110127
     
    206223                return false;
    207224        }
     225<<<<<<< .mine
     226
     227=======
     228>>>>>>> .r28
    208229}
Note: See TracChangeset for help on using the changeset viewer.