Changeset 9567 in osm


Ignore:
Timestamp:
2008-08-08T16:17:22+02:00 (16 years ago)
Author:
stotz
Message:

Bugfix: map moving triggered also region selection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/slippy_map_chooser/src/OsmMapControl.java

    r9562 r9567  
    7070
    7171        public void mouseDragged(MouseEvent e) {
    72                 if (iStartSelectionPoint != null) {
    73                         iEndSelectionPoint = e.getPoint();
    74                         iSlippyMapChooser.setSelection(iStartSelectionPoint, iEndSelectionPoint);
     72                if ((e.getModifiersEx() | MouseEvent.BUTTON1_DOWN_MASK) != 0) {
     73                        if (iStartSelectionPoint != null) {
     74                                iEndSelectionPoint = e.getPoint();
     75                                iSlippyMapChooser.setSelection(iStartSelectionPoint, iEndSelectionPoint);
     76                        }
    7577                }
    7678        }
     
    99101
    100102        public void mouseMoved(MouseEvent e) {
    101                 // TODO Auto-generated method stub
    102                
    103103        }
    104104
Note: See TracChangeset for help on using the changeset viewer.