Ticket #4242: drawaction-released.diff
| File drawaction-released.diff, 1.5 KB (added by , 16 years ago) |
|---|
-
src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
a b public class DrawAction extends MapMode implements MapViewPaintable, SelectionCh 268 268 269 269 private void tryAgain(MouseEvent e) { 270 270 getCurrentDataSet().setSelected(); 271 mouse Clicked(e);271 mouseReleased(e); 272 272 } 273 273 274 274 /** … … public class DrawAction extends MapMode implements MapViewPaintable, SelectionCh 296 296 * 297 297 * If in nodeway mode, insert the node into the way. 298 298 */ 299 @Override public void mouse Clicked(MouseEvent e) {299 @Override public void mouseReleased(MouseEvent e) { 300 300 if (e.getButton() != MouseEvent.BUTTON1) 301 301 return; 302 302 if(!Main.map.mapView.isActiveLayerDrawable()) … … public class DrawAction extends MapMode implements MapViewPaintable, SelectionCh 619 619 return null; 620 620 } 621 621 622 @Override public void mouseDragged(MouseEvent e) { 623 mouseMoved(e); 624 } 625 622 626 @Override public void mouseMoved(MouseEvent e) { 623 627 if(!Main.map.mapView.isActiveLayerDrawable()) 624 628 return; … … public class DrawAction extends MapMode implements MapViewPaintable, SelectionCh 649 653 /** 650 654 * This method prepares data required for painting the "helper line" from 651 655 * the last used position to the mouse cursor. It duplicates some code from 652 * mouse Clicked() (FIXME).656 * mouseReleased() (FIXME). 653 657 */ 654 658 private void computeHelperLine() { 655 659 MapView mv = Main.map.mapView;
