mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 08:21:59 +02:00
Fix update media end time
This commit is contained in:
10
clapper_src/controls.js
vendored
10
clapper_src/controls.js
vendored
@@ -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)
|
||||
|
Reference in New Issue
Block a user