Changeset 4494 in josm
- Timestamp:
- 2011-10-07T19:55:45+02:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ZoomInAction.java
r3252 r4494 30 30 public void actionPerformed(ActionEvent e) { 31 31 if (!Main.isDisplayingMapView()) return; 32 Main.map.mapView.zoomToFactor( 0.9);32 Main.map.mapView.zoomToFactor(1/Math.sqrt(2)); 33 33 } 34 34 -
trunk/src/org/openstreetmap/josm/actions/ZoomOutAction.java
r3252 r4494 25 25 public void actionPerformed(ActionEvent e) { 26 26 if (!Main.isDisplayingMapView()) return; 27 Main.map.mapView.zoomToFactor( 1/0.9);27 Main.map.mapView.zoomToFactor(Math.sqrt(2)); 28 28 } 29 29 -
trunk/src/org/openstreetmap/josm/gui/MapMover.java
r3919 r4494 182 182 */ 183 183 public void mouseWheelMoved(MouseWheelEvent e) { 184 nc.zoomToFactor(e.getX(), e.getY(), Math.pow( 0.8, -e.getWheelRotation()));184 nc.zoomToFactor(e.getX(), e.getY(), Math.pow(Math.sqrt(2), e.getWheelRotation())); 185 185 } 186 186
Note:
See TracChangeset
for help on using the changeset viewer.