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 |