- Timestamp:
- 2016-11-06T20:18:38+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/layer/LayerVisibilityAction.java
r11206 r11223 204 204 return; 205 205 } 206 double rotation = e.getPreciseWheelRotation();206 double rotation = -1 * e.getPreciseWheelRotation(); 207 207 double destinationValue = getValue() + rotation * SLIDER_WHEEL_INCREMENT; 208 208 if (rotation < 0) { … … 282 282 @Override 283 283 protected void mouseWheelMoved(MouseWheelEvent e) { 284 if (!isEnabled() && !filterLayers(model.getSelectedLayers()).isEmpty() && e.getPreciseWheelRotation() >0) {284 if (!isEnabled() && !filterLayers(model.getSelectedLayers()).isEmpty() && e.getPreciseWheelRotation() < 0) { 285 285 // make layer visible and set the value. 286 286 // this allows users to use the mouse wheel to make the layer visible if it was hidden previously. 287 287 e.consume(); 288 288 setVisibleFlag(true); 289 setRealValue(0.05);290 289 } else { 291 290 super.mouseWheelMoved(e);
Note:
See TracChangeset
for help on using the changeset viewer.