Changeset 32074 in osm for applications/viewer/jmapviewer
- Timestamp:
- 2016-02-18T17:45:24+01:00 (9 years ago)
- Location:
- applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/DefaultMapController.java
r32030 r32074 83 83 public void mouseWheelMoved(MouseWheelEvent e) { 84 84 if (wheelZoomEnabled) { 85 map.setZoom(map.getZoom() - e.getWheelRotation(), e.getPoint()); 85 int rotation = JMapViewer.zoomReverseWheel ? -e.getWheelRotation() : e.getWheelRotation(); 86 map.setZoom(map.getZoom() - rotation, e.getPoint()); 86 87 } 87 88 } -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/JMapViewer.java
r32030 r32074 46 46 /** whether debug mode is enabled or not */ 47 47 public static boolean debug; 48 49 /** option to reverse zoom direction with mouse wheel */ 50 public static boolean zoomReverseWheel; 48 51 49 52 /**
Note:
See TracChangeset
for help on using the changeset viewer.