mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-02 02:13:55 +00:00
fixed bug 326: clicking onto time slider puts it in replay mode in any case
This commit is contained in:
1 parent
18afc3e6f7
commit
d8378c5169
1 file changed
+4
@@ -118,6 +118,10 @@ public class TimePanel<T extends TimePanelSettings> extends FormPanel implements
|
||||
@Override
|
||||
public void onValueChange(ValueChangeEvent<Double> newValue) {
|
||||
if(sliderBar.getCurrentValue() != null) {
|
||||
if (TimePanel.this.timer.getPlayMode() == PlayModes.Live) {
|
||||
// put timer into replay mode when user explicitly adjusts time; avoids having to press pause first
|
||||
TimePanel.this.timer.setPlayMode(PlayModes.Replay);
|
||||
}
|
||||
TimePanel.this.timer.setTime(sliderBar.getCurrentValue().longValue());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user