/[classpath]/classpath/java/awt/Container.java
ViewVC logotype

Diff of /classpath/java/awt/Container.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.71 by trebligd, Wed Nov 23 15:16:40 2005 UTC revision 1.72 by rabbit78, Tue Dec 6 16:22:25 2005 UTC
# Line 2157  class LightweightDispatcher implements S Line 2157  class LightweightDispatcher implements S
2157          break;          break;
2158        }        }
2159    
2160      if (me.getID() == MouseEvent.MOUSE_PRESSED && modifiers > 0      if (me.getID() == MouseEvent.MOUSE_PRESSED
2161            && me.getID() == MouseEvent.MOUSE_PRESSED && modifiers > 0
2162          || me.getID() == MouseEvent.MOUSE_DRAGGED)          || me.getID() == MouseEvent.MOUSE_DRAGGED)
2163        {        {
2164          // If any of the following events occur while a button is held down,          // If any of the following events occur while a button is held down,
2165          // they should be dispatched to the same component to which the          // they should be dispatched to the same component to which the
2166          // original MOUSE_PRESSED event was dispatched:          // original MOUSE_PRESSED event was dispatched:
2167            //   - MOUSE_RELEASED: This is important for correct dragging
2168            //     behaviour, otherwise the release goes to an arbitrary component
2169            //     outside of the dragged component. OTOH, if there is no mouse
2170            //     drag while the mouse is pressed, the component under the mouse
2171            //     is the same as the previously pressed component anyway.
2172          //   - MOUSE_PRESSED: another button pressed while the first is held          //   - MOUSE_PRESSED: another button pressed while the first is held
2173          //     down          //     down
2174          //   - MOUSE_DRAGGED          //   - MOUSE_DRAGGED

Legend:
Removed from v.1.71  
changed lines
  Added in v.1.72

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26