Changeset 7094 in josm
- Timestamp:
- 2014-05-10T13:15:11+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/PlayHeadMarker.java
r6883 r7094 44 44 private boolean wasPlaying = false; 45 45 private int dropTolerance; /* pixels */ 46 private boolean jumpToMarker = false; 46 47 47 48 /** … … 234 235 235 236 /* Actually do the synchronization */ 236 if(ca == null) 237 { 237 if(ca == null) { 238 238 JOptionPane.showMessageDialog( 239 239 Main.parent, … … 280 280 public void animate() { 281 281 if (! enabled) return; 282 jumpToMarker = true; 282 283 if (timer == null) { 283 284 animationInterval = Main.pref.getDouble("marker.audioanimationinterval", 1.0); //milliseconds … … 343 344 (audioTime - w1.time)/(w2.time - w1.time))); 344 345 time = audioTime; 346 if (jumpToMarker) { 347 jumpToMarker = false; 348 Main.map.mapView.zoomTo(w1.getEastNorth()); 349 } 345 350 Main.map.mapView.repaint(); 346 351 }
Note:
See TracChangeset
for help on using the changeset viewer.