Fix update media end time

This commit is contained in:
Rafostar
2020-10-23 10:26:11 +02:00
parent e7a39d6af8
commit 576440faff
4 changed files with 21 additions and 17 deletions

View File

@@ -371,14 +371,10 @@ class ClapperControls extends Gtk.Box
_onPositionScaleValueChanged(scale)
{
let value = Math.round(scale.get_value());
this.updateElapsedLabel(value);
let positionSeconds = Math.round(scale.get_value());
if(this.currentPosition === value || this.isPositionSeeking)
return;
let { player } = this.get_ancestor(Gtk.Grid);
player.seek_seconds(value);
this.currentPosition = positionSeconds;
this.updateElapsedLabel(positionSeconds);
}
_onVolumeScaleValueChanged(scale)