Merge pull request #226 from Rafostar/speed-fix

Fix end time calculation with with non-1x speed
This commit is contained in:
Rafał Dzięgiel
2022-03-06 16:52:40 +01:00
committed by GitHub

View File

@@ -345,7 +345,8 @@ class ClapperWidget extends Gtk.Grid
const currTime = GLib.DateTime.new_now_local();
const endTime = currTime.add_seconds(
this.controls.positionAdjustment.get_upper() - this.controls.currentPosition
(this.controls.positionAdjustment.get_upper() - this.controls.currentPosition)
/ this.controls.elapsedButton.speedScale.get_value()
);
const nextUpdate = this.revealerTop.setTimes(currTime, endTime, this.isSeekable);