Changeset 15484 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2019-10-29T20:33:16+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r15481 r15484 745 745 final int maxtime = Config.getPref().getInt("smooth.scroll.maxtime", 5000); // milliseconds maximum scroll time 746 746 final double distance = newCenter.distance(oldCenter) / getScale(); 747 finaldouble milliseconds = distance / getWidth() * speed;747 double milliseconds = distance / getWidth() * speed; 748 748 if (milliseconds > maxtime) { // prevent overlong scroll time, speed up if necessary 749 749 milliseconds = maxtime;
Note:
See TracChangeset
for help on using the changeset viewer.