Ticket #402: MouseMover_20071013.patch
File MouseMover_20071013.patch, 1.1 KB (added by , 18 years ago) |
---|
-
src/org/openstreetmap/josm/gui/MapMover.java
92 92 /** 93 93 * If the right (and only the right) mouse button is pressed, move the map 94 94 */ 95 public void mouseDragged(MouseEvent e) {95 @Override public void mouseDragged(MouseEvent e) { 96 96 int offMask = MouseEvent.BUTTON1_DOWN_MASK | MouseEvent.BUTTON2_DOWN_MASK; 97 97 if ((e.getModifiersEx() & (MouseEvent.BUTTON3_DOWN_MASK | offMask)) == MouseEvent.BUTTON3_DOWN_MASK) { 98 98 if (mousePosMove == null) … … 157 157 * Zoom the map by 1/5th of current zoom per wheel-delta. 158 158 * @param e The wheel event. 159 159 */ 160 public void mouseWheelMoved(MouseWheelEvent e) {160 @Override public void mouseWheelMoved(MouseWheelEvent e) { 161 161 int w = nc.getWidth(); 162 162 int h = nc.getHeight(); 163 163 … … 176 176 /** 177 177 * Does nothing. Only to satisfy MouseMotionListener 178 178 */ 179 public void mouseMoved(MouseEvent e) {}179 @Override public void mouseMoved(MouseEvent e) {} 180 180 }