Changeset 2692 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2009-12-28T09:27:07+01:00 (15 years ago)
Author:
Gubaer
Message:

fixed #4242: patch by Pekka Lampila: Clicks are ignored in draw mode, if mouse is moving at all

Location:
trunk/src/org/openstreetmap/josm/actions/mapmode
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java

    r2521 r2692  
    156156    }
    157157
     158    @Override public void mouseDragged(MouseEvent e) {
     159        mouseMoved(e);
     160    }
     161
    158162    /**
    159163     * Listen to mouse move to be able to update the cursor (and highlights)
     
    219223     * position.
    220224     */
    221     @Override public void mouseClicked(MouseEvent e) {
     225    @Override public void mouseReleased(MouseEvent e) {
    222226        if (e.getButton() != MouseEvent.BUTTON1)
    223227            return;
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java

    r2666 r2692  
    269269    private void tryAgain(MouseEvent e) {
    270270        getCurrentDataSet().setSelected();
    271         mouseClicked(e);
     271        mouseReleased(e);
    272272    }
    273273
     
    297297     * If in nodeway mode, insert the node into the way.
    298298     */
    299     @Override public void mouseClicked(MouseEvent e) {
     299    @Override public void mouseReleased(MouseEvent e) {
    300300        if (e.getButton() != MouseEvent.BUTTON1)
    301301            return;
     
    620620    }
    621621
     622    @Override public void mouseDragged(MouseEvent e) {
     623        mouseMoved(e);
     624    }
     625
    622626    @Override public void mouseMoved(MouseEvent e) {
    623627        if(!Main.map.mapView.isActiveLayerDrawable())
     
    650654     * This method prepares data required for painting the "helper line" from
    651655     * the last used position to the mouse cursor. It duplicates some code from
    652      * mouseClicked() (FIXME).
     656     * mouseReleased() (FIXME).
    653657     */
    654658    private void computeHelperLine() {
Note: See TracChangeset for help on using the changeset viewer.