Changeset 30406 in osm for applications/viewer/jmapviewer
- Timestamp:
- 2014-04-18T15:52:13+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/DefaultMapController.java
r30403 r30406 44 44 return; 45 45 // 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 } 47 50 Point p = e.getPoint(); 48 51 if (lastDragPoint != null) { … … 64 67 public void mousePressed(MouseEvent e) { 65 68 debugMouseEvent("DefaultMapController.mousePressed", e); 69 66 70 if (e.getButton() == movementMouseButton || isPlatformOsx() && e.getModifiersEx() == MAC_MOUSE_BUTTON3_MASK) { 71 if (JMapViewer.debug) { 72 System.err.println("(#9897) move start"); 73 } 67 74 lastDragPoint = null; 68 75 isMoving = true; … … 73 80 debugMouseEvent("DefaultMapController.mouseReleased", e); 74 81 if (e.getButton() == movementMouseButton || isPlatformOsx() && e.getButton() == MouseEvent.BUTTON1) { 82 if (JMapViewer.debug) { 83 System.err.println("(#9897) move stop"); 84 } 75 85 lastDragPoint = null; 76 86 isMoving = false;
Note:
See TracChangeset
for help on using the changeset viewer.