137 |
if(e.getType() == e.MOUSE_PRESSED) { |
if(e.getType() == e.MOUSE_PRESSED) { |
138 |
// Ignore second button while dragging |
// Ignore second button while dragging |
139 |
if(currentDrag != null) return false; |
if(currentDrag != null) return false; |
140 |
currentDrag = mousePressListeners[(e.getModifiers() & ALLMASK) + MAXMASK * e.getButton()] |
MousePressListener mpl = mousePressListeners[(e.getModifiers() & ALLMASK) + MAXMASK * e.getButton()]; |
141 |
.pressed(e.getX(), e.getY()); |
if(mpl == null) return false; |
142 |
|
currentDrag = mpl.pressed(e.getX(), e.getY()); |
143 |
if(currentDrag != null) { |
if(currentDrag != null) { |
144 |
currentDragButton = e.getButton(); |
currentDragButton = e.getButton(); |
145 |
currentDrag.startDrag(e.getX(), e.getY()); |
currentDrag.startDrag(e.getX(), e.getY()); |