Changeset 739


Ignore:
Timestamp:
01/22/14 15:12:37 (10 years ago)
Author:
jts21
Message:

Fix bug with carrying items over widgets. Unfortunately this also means dragging items between Expeditee windows is now even less reliable (really need to find a way of checking if the expeditee window lost focus to a window that is not a child of the expeditee window)

File:
1 edited

Legend:

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

    r738 r739  
    158158                if(e.getID() == MouseEvent.MOUSE_EXITED) {
    159159                        // System.out.println(e.getComponent());
    160                         if(e.getSource() instanceof Browser || e.getComponent() instanceof Browser ||
    161                                         e.getX() <= 0 || e.getX() >= _contentPane.getWidth() ||
    162                                         e.getY() <= 0 || e.getY() >= _contentPane.getHeight()) {
     160                        if(containerPoint.x <= 0 || containerPoint.x >= _contentPane.getWidth() ||
     161                                        containerPoint.y <= 0 || containerPoint.y >= _contentPane.getHeight()) {
    163162                                FrameMouseActions.mouseExitedWindow(e);
    164163                        }
Note: See TracChangeset for help on using the changeset viewer.