Changeset 30406 in osm for applications/viewer/jmapviewer


Ignore:
Timestamp:
2014-04-18T15:52:13+02:00 (10 years ago)
Author:
bastik
Message:

see #josm9897 - Move map no longer works on OSX

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/DefaultMapController.java

    r30403 r30406  
    4444            return;
    4545        // Is only the selected mouse button pressed?
    46         if ((e.getModifiersEx() & MOUSE_BUTTONS_MASK) == movementMouseButtonMask) {
     46        if ((e.getModifiersEx() & MOUSE_BUTTONS_MASK) == movementMouseButtonMask || isPlatformOsx() && e.getModifiersEx() == MAC_MOUSE_BUTTON3_MASK) {
     47            if (JMapViewer.debug) {
     48                System.err.println("(#9897)  moving");
     49            }
    4750            Point p = e.getPoint();
    4851            if (lastDragPoint != null) {
     
    6467    public void mousePressed(MouseEvent e) {
    6568        debugMouseEvent("DefaultMapController.mousePressed", e);
     69       
    6670        if (e.getButton() == movementMouseButton || isPlatformOsx() && e.getModifiersEx() == MAC_MOUSE_BUTTON3_MASK) {
     71            if (JMapViewer.debug) {
     72                System.err.println("(#9897)  move start");
     73            }
    6774            lastDragPoint = null;
    6875            isMoving = true;
     
    7380        debugMouseEvent("DefaultMapController.mouseReleased", e);
    7481        if (e.getButton() == movementMouseButton || isPlatformOsx() && e.getButton() == MouseEvent.BUTTON1) {
     82            if (JMapViewer.debug) {
     83                System.err.println("(#9897)  move stop");
     84            }
    7585            lastDragPoint = null;
    7686            isMoving = false;
Note: See TracChangeset for help on using the changeset viewer.