diff --git a/core/src/main/java/edu/umd/cs/piccolo/PCanvas.java b/core/src/main/java/edu/umd/cs/piccolo/PCanvas.java index 573c357..8d5ef4b 100644 --- a/core/src/main/java/edu/umd/cs/piccolo/PCanvas.java +++ b/core/src/main/java/edu/umd/cs/piccolo/PCanvas.java @@ -457,12 +457,7 @@ } sendInputEventToInputManager(e, MouseEvent.MOUSE_PRESSED); - } - - private void sendRetypedMouseEventToInputManager(MouseEvent e, int newType) { - MouseEvent retypedEvent = buildRetypedMouseEvent(e, newType); - sendInputEventToInputManager(retypedEvent, newType); - } + } /** {@inheritDoc} */ public void mouseReleased(MouseEvent e) { @@ -536,7 +531,11 @@ return new MouseEvent((Component) e.getSource(), newType, e.getWhen(), e.getModifiers(), e.getX(), e.getY(), e.getClickCount(), e.isPopupTrigger(), newButton); } - + + private void sendRetypedMouseEventToInputManager(MouseEvent e, int newType) { + MouseEvent retypedEvent = buildRetypedMouseEvent(e, newType); + sendInputEventToInputManager(retypedEvent, newType); + } }; addMouseListener(mouseListener); }